Skip to content

Initial work to move indentation services down to codestyle layer (step 1/N)#60438

Merged
CyrusNajmabadi merged 1 commit intodotnet:mainfrom
CyrusNajmabadi:indentationDown1
Mar 29, 2022
Merged

Initial work to move indentation services down to codestyle layer (step 1/N)#60438
CyrusNajmabadi merged 1 commit intodotnet:mainfrom
CyrusNajmabadi:indentationDown1

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

@CyrusNajmabadi CyrusNajmabadi commented Mar 29, 2022

This step decouples one of our formatting helpers from teh workspace (specifically workspaceservices).
It also changes a shared type to follow the pattern of a MEF-free impl, with a MEF wrapper that then exports it at 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.

Copy link
Copy Markdown
Member

@dibarbet dibarbet left a comment

Choose a reason for hiding this comment

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

this looks fine, but I dont understand the codestyle layer

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