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

[Razor Cohost] Pass TextDocuments to Razor for text sync LSP messages #71671

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

davidwengier
Copy link
Contributor

The original API I wrote for text sync for cohosting was sadly not sufficient to allow Razor to call the source generator. This fixes that by providing TextDocuments in the didOpen/didChange/didClose requests.

@davidwengier davidwengier requested a review from a team January 17, 2024 02:27
@davidwengier davidwengier requested a review from a team as a code owner January 17, 2024 02:27
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jan 17, 2024
@davidwengier davidwengier merged commit 3cd939f into dotnet:main Jan 18, 2024
28 checks passed
@davidwengier davidwengier deleted the NewRazorCohostAPI branch January 18, 2024 03:36
@ghost ghost added this to the Next milestone Jan 18, 2024
davidwengier added a commit to dotnet/razor that referenced this pull request Jan 26, 2024
…9831)

Part of #9519

Right now code generation, in co-hosting and non, comes from document
snapshots in the Razor project system which directly call the Razor
compiler. This change means that all Html and C# code generation in
co-hosting is done based on the TextDocument, which means it will come
from the source generator when that part is ready.

This is the Razor side of, and needs a Roslyn bump to,
dotnet/roslyn#71671
@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
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants