Skip to content
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

Code style options cleanup #73744

Merged
merged 5 commits into from
Jun 5, 2024
Merged

Code style options cleanup #73744

merged 5 commits into from
Jun 5, 2024

Conversation

tmat
Copy link
Member

@tmat tmat commented May 28, 2024

Today we have two interfaces that represent values of a code style options: ICodeStyleOption (public) and ICodeStyleOption2 (internal).

ICodeStyleOption is only used for options we hand out via legacy public APIs. It is not available in code style layer.
ICodeStyleOption2 should be used throughout Roslyn. The internal values are translated to the public ones at the public entry points.

ICodeStyleOption2 implemented ICodeStyleOption. This change separates these two types entirely, removing the dependency, and cleans up related code.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels May 28, 2024
@tmat tmat changed the title Move MutableNamingStyle to VS layer Code style options cleanup May 29, 2024
@tmat tmat marked this pull request as ready for review May 29, 2024 20:26
@tmat tmat requested a review from a team as a code owner May 29, 2024 20:26
@CyrusNajmabadi
Copy link
Member

ICodeStyleOption is only used for options we hand out via legacy public APIs. It is not available in code style layer.
ICodeStyleOption2 should be used throughout Roslyn. The internal values are translated to the public ones at the public entry points.

If this isn't already stated on both types, please add. This is def critical info for wrapping ones head around what is going on inside roslyn :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants