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 Razor mapping errors in the log #6209

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

davidwengier
Copy link
Contributor

@davidwengier davidwengier commented Aug 23, 2023

Client side of dotnet/razor#9151

We were getting errors from razor/mapDocumentRange in the logs, and at least one of the reasons was 2 seconds after a document close, we try to update diagnostics for the .razor document, which then tries to remap the ranges for those diagnostics, but we've just closed the file, the so it fails.

This fixes that by doing the mapping on the server, which is where it should have happened anyway, so also improves perf.

Will push a Razor insertion to this PR too, once dotnet/razor#9151 has been merged.

@davidwengier davidwengier requested a review from a team as a code owner August 24, 2023 01:34
@davidwengier davidwengier merged commit b5f8db1 into dotnet:main Aug 24, 2023
6 checks passed
@davidwengier davidwengier deleted the RazorDiagnostics branch August 24, 2023 02:26
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.

None yet

2 participants