dotnet / razor

Compiler and tooling experience for Razor ASP.NET Core apps in Visual Studio, Visual Studio for Mac, and VS Code.
https://asp.net
MIT License
505 stars 196 forks source link

Use capabilities to opt out of workspace diagnostics #8154

Open davidwengier opened 1 year ago

davidwengier commented 1 year ago

We don't support workspace diagnostics, so at the moment we have an empty handler just to avoid false negatives in telemetry (see #8147)

Once the corresponding capability is available in the LSP Protocol dependency we should see about setting it as appropriate, to have the client avoid the requests altogether.

Note: At time of writing, that capability doesn't seem to do anything, so might need to follow up with the editor team. Definitely need to test carefully, and not just remove our endpoint and assume the best.

davidwengier commented 5 months ago

Tracked by https://dev.azure.com/devdiv/DevDiv/_workitems/edit/2090806