Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

Editor migrated these and dumped the data in the old locations.

Fixes #80877

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner December 1, 2025 16:20

public static readonly IReadOnlyDictionary<string, VisualStudioOptionStorage> Storages = new Dictionary<string, VisualStudioOptionStorage>()
{
// Modern settings-manager stored options.
Copy link
Member

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?

Copy link
Member

@tmat tmat Dec 1, 2025

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)
?

Copy link
Member Author

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.

Copy link
Member Author

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.

Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

Remove #pragma

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

@CyrusNajmabadi CyrusNajmabadi merged commit a618d62 into dotnet:main Dec 2, 2025
25 of 26 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the newOptions branch December 2, 2025 00:00
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Format Document during Code Cleanup does not respect my style settings

3 participants