Skip to content

Initial work to move indentation services down to codestyle layer (step 4/N)#60442

Merged
CyrusNajmabadi merged 10 commits intodotnet:mainfrom
CyrusNajmabadi:indentationDown4
Mar 29, 2022
Merged

Initial work to move indentation services down to codestyle layer (step 4/N)#60442
CyrusNajmabadi merged 10 commits intodotnet:mainfrom
CyrusNajmabadi:indentationDown4

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

Followup to #60440

This continues that work by pushing ISmartTokenFormatter down to the codestyle layer.

I'm doing these PRs in multiple parts to make things simpler to review. Every time i try to tackle the general problem, it explodes into a ton of changes.

The reason for this change overall is that we have fixers taht need to know indentation information. For example, the 'convert to file-scoped-namespace (and reverse)' fixes have to know indentation information so it can make the right fixes. Not having indentation info be available at thsi level means that the fixes are constrained to the VS host.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner March 29, 2022 03:47
Copy link
Copy Markdown
Contributor

@mavasani mavasani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, mostly nits.

Every time i try to tackle the general problem, it explodes into a ton of changes.

I can feel your pain, I ran into the same things when trying to move analyzers/fixers down to these shared layers. Thanks for breaking it up into different PRs!

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

I can feel your pain, I ran into the same things when trying to move analyzers/fixers down to these shared layers. Thanks for breaking it up into different PRs!

yup yup. i had to do it in tiny bits. but it all worked out in the end.

@CyrusNajmabadi CyrusNajmabadi merged commit 2528bad into dotnet:main Mar 29, 2022
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