Skip to content

Remove the CanonicalForked state from LanguageServerProjectLoader#82755

Draft
jasonmalinowski wants to merge 2 commits intodotnet:mainfrom
jasonmalinowski:get-rid-of-canonical-state
Draft

Remove the CanonicalForked state from LanguageServerProjectLoader#82755
jasonmalinowski wants to merge 2 commits intodotnet:mainfrom
jasonmalinowski:get-rid-of-canonical-state

Conversation

@jasonmalinowski
Copy link
Member

@jasonmalinowski jasonmalinowski commented Mar 13, 2026

This simplifies the approach being used for forked canonical projects and brings them back inline with how we do regular projects. A project where we want a forked canonical project for is initialized to being a primordial project like before, and then we update it to a real project via the usual mechanism. The trick is to treat the build host parameter to TryLoadProjectInMSBuildHostAsync as optional -- once we've built the canonical state we just don't need to use it again.

Microsoft Reviewers: Open in CodeFlow

This simplifies the approach being used for forked canonical projects
and brings them back inline with how we do regular projects. A project
where we want a forked canonical project for is initialized to being
a primordial project like before, and then we update it to a real
project via the usual mechanism. The trick is to treat the build host
parameter to TryLoadProjectInMSBuildHostAsync as optional -- once
we've built the canonical state we just don't need to use it again.
@jasonmalinowski jasonmalinowski force-pushed the get-rid-of-canonical-state branch from fdf605d to 2eca09a Compare March 14, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant