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

Don't use project engines directly in the language server #9836

Merged
merged 5 commits into from
Jan 19, 2024

Conversation

davidwengier
Copy link
Contributor

@davidwengier davidwengier commented Jan 19, 2024

Part of #9519

There are a few methods in the document/project snapshot system that are problematic and unnecessary in co-hosting. To make their removal from that system easier, I'm going to try to clean some things up around their use, and this is the first PR in that step, by cleaning up the GetProjectEngine() method a little bit.

The method is still there, because its used by TagHelperResolvers, but those won't be used in co-hosting so they're not a problem. A future PR will (presumably) split IProjectSnapshot up in some way, and so the method itself won't strictly be removed, but rather just not exposed to anything in co-hosting.

I did an integration test run from the midway point of this PR to ensure formatting still works, and it's green: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=8939290&view=results

@davidwengier davidwengier requested a review from a team as a code owner January 19, 2024 03:56
Copy link
Member

@DustinCampbell DustinCampbell left a comment

Choose a reason for hiding this comment

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

This is excellent clean up - thank you!

@davidwengier davidwengier merged commit 999b334 into dotnet:main Jan 19, 2024
12 checks passed
@davidwengier davidwengier deleted the DontUseProjectEngineDirectly branch January 19, 2024 22:32
@ghost ghost added this to the Next milestone Jan 19, 2024
@Cosifne Cosifne modified the milestones: Next, 17.10 P1 Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants