-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two sets of localtest fixes for July 2022 #13603
Conversation
This comment has been minimized.
This comment has been minimized.
@@ -1156,6 +1156,18 @@ void CascadiaSettings::ExportFile(winrt::hstring path, winrt::hstring content) | |||
|
|||
void CascadiaSettings::_validateThemeExists() | |||
{ | |||
if (_globals->Themes().Size() == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- If this is only hit in the tests, shouldn't we be adding the "system" theme in the tests?
- In a (possibly distant) world where we have multiple
GlobalAppSettings
in the inheritance structure, I could see some of them not having a theme set. Is that going to be a problem here where we add an empty "system" theme?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The empty system theme IS the system theme (that's actually how it works!)
I think it's important to have in the validation, honestly. defaults.json is a crutch, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm rewording the comment here.
I think it's fine to leave this as a validation step. In reality, we'll always have a themes
in defaults.json
, but oftentimes the tests just don't even bother with a defaults
, for simplicity.
The alternative would be to make the themes in defaults.json
actually hardcoded instead, but that seemed more fragile. Seemed like it was a good idea to have the themes actually listed there (esp. for the terminalBackground
treatment we're giving the tabs in #13554)
Hello @DHowett! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Cleans up a couple local test failures.
defaults.json
.