Skip to content

Fix reading VB editor options from ISettingsManager (17.4) - #66398

Closed
tmat wants to merge 1 commit into
dotnet:release/dev17.4from
tmat:FixVBEditorOptions17.4
Closed

tmat wants to merge 1 commit into
dotnet:release/dev17.4from
tmat:FixVBEditorOptions17.4

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
VS issue: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1717717

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 21:51
@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 (17.4) Jan 12, 2023
@Cosifne

Cosifne commented Jan 14, 2023

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 4 pipeline(s).

@arunchndr

Copy link
Copy Markdown

@tmat in a separate PR, lets consider adding an integration test. With the vscode changes coming as well, this space will see a lot of churn.

@tmat

tmat commented Jan 14, 2023

Copy link
Copy Markdown
Member Author

@arkalyanms We do have integration tests. They test setting and reading all options. If, however, the option storage name is wrong they will not fail because the settings manager is just gonna create a new option for that storage name with default value. The test will see what it expects to see.

The planned changes shouldn't affect VS.

@skurth

skurth commented Feb 16, 2023

Copy link
Copy Markdown

This is not implemented in 17.4.5, right?
Because 66071 doesn't work yet.

@tmat

tmat commented Feb 16, 2023

Copy link
Copy Markdown
Member Author

@skurth No, it is not in 17.4

@tmat tmat closed this Feb 16, 2023
@skurth

skurth commented Feb 17, 2023 •

Copy link
Copy Markdown

@tmat But in 17.5 this will be fixed?

Edit: #66396 I think yes :)

@tmat

tmat commented Feb 17, 2023

Copy link
Copy Markdown
Member Author

@skurth Indeed.

Cosifne added a commit to Cosifne/roslyn that referenced this pull request Apr 20, 2023
MSRC fix. According to the mail, we should update to 16.5.28.

The feature branch is based on dotnet#66423
The last checked in bug fix is dotnet#66359

Since QB doesn't want to approve dotnet#66398 now. I feel we shouldn't wait for that change to merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants