Skip to content

Formatter options refactoring - step 1#58807

Merged
tmat merged 13 commits into
dotnet:mainfrom
tmat:Formatter
Jan 15, 2022
Merged

Formatter options refactoring - step 1#58807
tmat merged 13 commits into
dotnet:mainfrom
tmat:Formatter

Conversation

@tmat
Copy link
Copy Markdown
Member

@tmat tmat commented Jan 12, 2022

Wraps AnalyzerConfigOptions passed to formatter in new SyntaxFormattingOptions struct. The wrapped options will be replaced by specific fields holding on option values later on.
Adds new overloads to Formatter/FormatterHelper that take SyntaxFormattingOptions instead of OptionSet and avoid reading Workspace.Options when options are not specified (the new overloads require options to be passed in).

Removes AllowDisjointSpanMerging option (#58823)

@ghost ghost added the Area-IDE label Jan 12, 2022
@tmat tmat marked this pull request as ready for review January 13, 2022 22:07
@tmat tmat requested review from a team as code owners January 13, 2022 22:07
@tmat tmat changed the title Formatter Formatter options refactoring - step 1 Jan 13, 2022
Comment thread src/EditorFeatures/CSharpTest/Formatting/FormattingEngineTests.cs
@tmat tmat merged commit 591e899 into dotnet:main Jan 15, 2022
@ghost ghost added this to the Next milestone Jan 15, 2022
@tmat tmat deleted the Formatter branch January 16, 2022 17:25
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.

3 participants