-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Migrate certain formatting settings over to new options system #81503
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
Conversation
|
|
||
| public static readonly IReadOnlyDictionary<string, VisualStudioOptionStorage> Storages = new Dictionary<string, VisualStudioOptionStorage>() | ||
| { | ||
| // Modern settings-manager stored options. |
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.
Can we use this for all VS options, or are there still options that are not available from this API?
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.
Can we now remove
| public RoamingProfileStorage(string key, string vbKey) |
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.
So, there are still some roaming options that do different things with vb vs C#. so i need to keep this.
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.
Can we use this for all VS options, or are there still options that are not available from this API?
I'm genuinely not sure. This option is a case where these were platform options that moved to a new location with a new key.
We still use RoamingProfileStorage to store a bunch of our options, and it's unclear to me if those are found though ISettingManager.
Given that these 4 are high profile options that are currently broken, i'd prefer to fix in isolation (esp. if we want to backport) and then worry about the rest later.
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.
Sure, let's fix these now. I was wondering if we can simplify in a follow up.
| {"csharp_format_on_semicolon", new RoamingProfileStorage("TextEditor.%LANGUAGE%.Specific.Auto Formatting On Semicolon")}, | ||
| {"csharp_format_on_typing", new RoamingProfileStorage("TextEditor.%LANGUAGE%.Specific.Auto Formatting On Typing")}, | ||
| {"dotnet_format_on_paste", new RoamingProfileStorage("TextEditor.%LANGUAGE%.Specific.FormatOnPaste")}, | ||
| #pragma warning disable CS0612 // Type or member is obsolete |
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.
Remove #pragma
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.
done.
Editor migrated these and dumped the data in the old locations.
Fixes #80877