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

Formatter options refactoring - step 1 #58807

Merged
merged 13 commits into from
Jan 15, 2022
Merged

Formatter options refactoring - step 1 #58807

merged 13 commits into from
Jan 15, 2022

Conversation

tmat
Copy link
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)

@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
@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