Skip to content

Initial work to move indentation services down to codestyle layer (step 5/N)#60443

Merged
CyrusNajmabadi merged 14 commits intodotnet:mainfrom
CyrusNajmabadi:indentationDown5
Mar 29, 2022
Merged

Initial work to move indentation services down to codestyle layer (step 5/N)#60443
CyrusNajmabadi merged 14 commits intodotnet:mainfrom
CyrusNajmabadi:indentationDown5

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

Followup to #60442

This is trying to decouple the indenter from the workspace layer. In this step we retrieve hte ISmartTokenFormatter up front to pass into it, instead of it retrieving it by going through the workspace 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 01:17
@ghost ghost added the Area-IDE label Mar 29, 2022
@CyrusNajmabadi CyrusNajmabadi requested a review from mavasani March 29, 2022 06:55
@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

@mavasani if you can look at this one, it will absorb the previous 4 PRs. it's been annoying getting things green. lots of reruns in main right now.

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, same comments as prior PR, which can be done as a follow-up.

@CyrusNajmabadi CyrusNajmabadi merged commit a5bd496 into dotnet:main Mar 29, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the indentationDown5 branch March 29, 2022 07:22
@ghost ghost added this to the Next milestone Mar 29, 2022
@dibarbet dibarbet modified the milestones: Next, 17.3.P1 Apr 25, 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