Skip to content

Prepare for per-window settings#20328

Open
zadjii-msft wants to merge 12 commits into
mainfrom
user/migrie/per-window-prequel
Open

Prepare for per-window settings#20328
zadjii-msft wants to merge 12 commits into
mainfrom
user/migrie/per-window-prequel

Conversation

@zadjii-msft

Copy link
Copy Markdown
Member

This is part one of a two-part pair of PRs to add support for per window name settings to the Windows terminal.

This first PR functionally does very little. It introduces the concept of a WindowSettings object, where each WindowSettings object may be different based off of the name of the window. However, the settings model doesn't actually expose different instances of WindowSettings currently. It just introduces one fake instance that actually just wraps the global settings object to store all of them. This means that functionally the code hasn't actually changed in this PR. We are just accessing these properties through an intermediate type.

Largely this PR is mostly mechanical. where we previously would have been accessing properties on the GlobalAppSettings, now we are just accessing the _currentWindowSettings() (via a helper, or passing as a parameter).

All of this refactoring can be done now to always access the correct window settings object so that the next PR is much easier to read. That is where it will get more interesting and we will have more instances of window settings.

re: #9992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant