-
Notifications
You must be signed in to change notification settings - Fork 196
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
Add LanguageServerOption For Diagnostics #8622
Conversation
...Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Diagnostics/RazorDiagnosticsPublisher.cs
Outdated
Show resolved
Hide resolved
...Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Diagnostics/RazorDiagnosticsPublisher.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exception based programming is never fun.
The real solution here is to add a new LanguageServerFeatureOption
for SupportsDelegatedDiagnostics
, just like we have to SupportsDelegatedCodeActions
, and then just not issue the request at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
…rverClient Follow up for: dotnet/razor#8622 Set SupportsDelegatedDiagnostics On RazorLanguageServerClient so that C# diagnostic requests only come in on new C# extension.
Add
SupportsDelegatedDiagnostics
language server option and request for diagnostics only if it is true.Related: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1806769