Skip to content

Create system for formatting new documents#55432

Closed
davidwengier wants to merge 15 commits intodotnet:mainfrom
davidwengier:NewDocumentFormatting
Closed

Create system for formatting new documents#55432
davidwengier wants to merge 15 commits intodotnet:mainfrom
davidwengier:NewDocumentFormatting

Conversation

@davidwengier
Copy link
Member

@davidwengier davidwengier commented Aug 5, 2021

In preparation for #55417

This moves all of the work that the AbstractEditorFactory does on new document creation to various individual providers. Hopefully the layering and MEF stuff is close to correct. It works at least ¯\_(ツ)_/¯

Tests still to come, there is no coverage for the existing system I can see. There might be integration tests, but they should be unchanged anyway.

The service simply iterates through a number of providers and calls each one in turn, building up the new document as it goes.
@ghost ghost added the Area-IDE label Aug 5, 2021
@davidwengier davidwengier changed the title Create service for formatting new documents Create system for formatting new documents Aug 5, 2021
@davidwengier davidwengier marked this pull request as ready for review August 5, 2021 11:52
@davidwengier davidwengier requested a review from a team as a code owner August 5, 2021 11:52
Copy link
Contributor

@CyrusNajmabadi CyrusNajmabadi left a comment

Choose a reason for hiding this comment

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

Overall i think this makes a lot of sense. a bit of oddness in the services/exports, but otherwise this is def a good improvement.

Copy link
Member Author

@davidwengier davidwengier left a comment

Choose a reason for hiding this comment

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

Stupid github mobile app.. my comments were stuck in comment jail

@CyrusNajmabadi
Copy link
Contributor

I don't know why we wouldn't keep using the rest,

Seems reasonable. Just please comment in the code the intent here. Thanks!

@davidwengier
Copy link
Member Author

Superseded by #55463

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.

2 participants