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

Fix cohosting completion and code actions #11619

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

davidwengier
Copy link
Member

Fixes #10693

Not a lot in the way of code changes here, its mostly just unskipping tests. Those tests won't pass until dotnet/roslyn#77587 is merged and available, but this PR leaves only 5 tests skipped in cohosting, which probably puts us in a position to internally dogfood.

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.

Code changes look good to me

davidwengier added a commit to dotnet/roslyn that referenced this pull request Apr 1, 2025
Part of dotnet/razor#10693
Razor side of this is dotnet/razor#11619 which I
think makes us ready to internally dogfood cohosting.

This unblocks Razor completion and most of code actions in cohosting. It
allows `WithText` and `WithSyntaxRoot` to work on source generated
documents, creating a forked solution with frozen source generated
documents. Solutions can be continually frozen without issue, and
unfreezing puts them back to their original state. This also allows code
actions to run on modified source generated documents, but only if they
have been frozen.

As discussed there aren't any flags for this to only be possible
from/for Razor.

Still investigating individual code actions that aren't working in
Razor, but those will probably be a follow up. Enough of the Razor tests
pass now that it proves the system generally works (see comment below).
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.

Turn off the old generated document compilation system when cohosting is active
3 participants