Skip to content

Fix reading VB editor options from ISettingsManager (main) - #66399

Merged
tmat merged 1 commit into
dotnet:mainfrom
tmat:FixVBEditorOptionsMain
Jan 17, 2023
Merged

tmat merged 1 commit into
dotnet:mainfrom
tmat:FixVBEditorOptionsMain

Conversation

@tmat

@tmat tmat commented Jan 12, 2023 •

Copy link
Copy Markdown
Member

We regressed a few VB editor options in 17.4 (PR: #62759) when we switched reading these options from IVsTextManagerEvents4 to ISettingsManager API.

  • formatting: "Use Tabs", "Indent Size", "Tab Size". "Smart Indent",
  • statement completion: "Auto list members", "Hide advanced members", "Parameter information",
  • settings: "Navigation bar"

We don't read their values for VS settings correctly for VB because we use language name "VisualBasic" while the editor uses "Basic" in the option storage name.

This does not affect other languages (C#, F#).

Fixes #66325

We regressed a few VB editor options in 17.4 (PR: dotnet#62759) when we switched reading these options from IVsTextManagerEvents4 to ISettingsManager API.
- formatting: "Use Tabs", "Indent Size", "Tab Size". "Smart Indent",
- statement completion: "Auto list members", "Hide advanced members", "Parameter information",
- settings: "Navigation bar"

We don't read their values for VS settings correctly for VB because we use language name "VisualBasic" while the editor uses "Basic" in the option storage name.

This does not affect other languages (C#, F#).
@tmat
tmat requested a review from a team as a code owner January 12, 2023 22:06
@ghost ghost added the Area-IDE label Jan 12, 2023
@tmat tmat changed the title Fix reading VB editor options from ISettingsManager Fix reading VB editor options from ISettingsManager (main) Jan 12, 2023
@tmat
tmat merged commit 1a5c57e into dotnet:main Jan 17, 2023
@tmat
tmat deleted the FixVBEditorOptionsMain branch January 17, 2023 20:33
@ghost ghost added this to the Next milestone Jan 17, 2023
@Cosifne Cosifne modified the milestones: Next, 17.6 P1 Jan 31, 2023
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.

Document.GetOptionsAsync returns wrong TabSize for VB document

2 participants