Skip to content

"Color scheme" is two words - #1054

Merged
Mike Griese (zadjii-msft) merged 3 commits into
microsoft:masterfrom
edenfrosst:colorscheme
May 30, 2019
Merged

Mike Griese (zadjii-msft) merged 3 commits into
microsoft:masterfrom
edenfrosst:colorscheme

Conversation

@edenfrosst

@edenfrosst Eden Frosst (edenfrosst) commented May 29, 2019 •

Copy link
Copy Markdown
Contributor

Summary of the Pull Request

Change the profile key to colorScheme (from colorscheme), to be consistent with other configuration options.
Update some comments in ColorTool to match.

References

PR Checklist

  • Closes #xxx
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

This will likely break some existing profiles that use the old key.

@miniksa

Copy link
Copy Markdown
Contributor

I defer to Mike Griese (@zadjii-msft) and Dustin L. Howett (MSFT) (@DHowett-MSFT) on how they want to treat this breaking change to settings.

I like fixing the naming up, but I'm not sure what level of compatibility we're supporting on settings at the moment between builds.

@zadjii-msft

Copy link
Copy Markdown
Member

Huh. This is good and righteous work, but I don't know how comfortable we are introducing a breaking settings change at this point.

On one hand, it's still before we've released an official binary, so there's no real reason to expect things to be stable.

On the other hand, I'd rather not introduce a breaking change just for changing the case of a key in the file.

We've had a couple other PRs so far that have left the legacy deserialization in place in order to gracefully upgrade the settings from one schema to the next. @ianjfrosst could you add code to CascadiaSettings::FromJson to try and load the color scheme from the old key (colorscheme) if it exists? That way, we'll still try and load the old key if it's there.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm comfortable with this now that there's settings migration!

else
else if (json.HasKey(COLORSCHEME_KEY_OLD))
{
// TODO: deprecate old settings key

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to file a github issue for this and link it here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// TODO: deprecate old settings key
// TODO:GH#1069 deprecate old settings key

@zadjii-msft
Mike Griese (zadjii-msft) merged commit 71e19cd into microsoft:master May 30, 2019
@zadjii-msft Mike Griese (zadjii-msft) added Area-Settings Issues related to settings and customizability, for console or terminal Product-Terminal The new Windows Terminal. labels May 30, 2019
@edenfrosst
Eden Frosst (edenfrosst) deleted the colorscheme branch May 30, 2019 20:24
SubjectMatterEgnoramoose added a commit to SubjectMatterEgnoramoose/terminal that referenced this pull request Jun 1, 2019
SubjectMatterEgnoramoose added a commit to SubjectMatterEgnoramoose/terminal that referenced this pull request Jun 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Settings Issues related to settings and customizability, for console or terminal Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants