Initial draft of LSP pull diagnostics for documents.#47914
Initial draft of LSP pull diagnostics for documents.#4791466 commits merged intodotnet:master-vs-depsfrom
Conversation
|
You also need to add a method to this nonsense here: https://github.com/dotnet/roslyn/blob/master/src/VisualStudio/Core/Def/Implementation/LanguageClient/InProcLanguageServer.cs#L142 And you probably need to update the Initialize handler to tell the client that we support pull diagnostics, here: https://github.com/dotnet/roslyn/blob/master/src/Features/LanguageServer/Protocol/Handler/Initialize/InitializeHandler.cs#L43 |
dibarbet
left a comment
There was a problem hiding this comment.
I'm a little unsure of how the diagnostic service events are interacting with the lsp requests here, some explanation might be good
src/Features/LanguageServer/Protocol/Handler/Diagnostics/DocumentPullDiagnosticHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Diagnostics/DocumentPullDiagnosticHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Diagnostics/DocumentPullDiagnosticHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Diagnostics/DocumentPullDiagnosticHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Diagnostics/DocumentPullDiagnosticHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Diagnostics/DocumentPullDiagnosticHandler.cs
Outdated
Show resolved
Hide resolved
b29ae00 to
e4b3ab8
Compare
src/Features/LanguageServer/Protocol/Handler/Diagnostics/DocumentPullDiagnosticHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Diagnostics/DocumentPullDiagnosticHandler.cs
Outdated
Show resolved
Hide resolved
dibarbet
left a comment
There was a problem hiding this comment.
mainly lgtm!
one request, a few comments
Could you verify in a local razor file that other (non-diagnostic) c# LSP features work (e.g., go to definition) when the LSP razor editor flag is set? I assume diagnostics won't until @TanayParikh completes the work for pull diagnostics, but I want to make sure that my assumption that the rest of the c# features work w/out the RazorLanguageClient is true
src/Features/LanguageServer/Protocol/Handler/Diagnostics/AbstractPullDiagnosticHandler.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Diagnostics/WorkspacePullDiagnosticHandler.cs
Show resolved
Hide resolved
src/Features/LanguageServer/ProtocolUnitTests/Diagnostics/PullDiagnosticTests.cs
Show resolved
Hide resolved
src/VisualStudio/Core/Def/Implementation/LanguageClient/InProcLanguageServer.cs
Show resolved
Hide resolved
src/VisualStudio/Core/Def/Implementation/LanguageClient/RazorLanguageClient.cs
Show resolved
Hide resolved
src/VisualStudio/Core/Def/Implementation/LanguageClient/RazorLanguageClient.cs
Show resolved
Hide resolved
dibarbet
left a comment
There was a problem hiding this comment.
missed a couple comments in the first pass
src/Features/LanguageServer/Protocol/Extensions/ProtocolConversions.cs
Outdated
Show resolved
Hide resolved
src/Features/LanguageServer/Protocol/Handler/Diagnostics/AbstractPullDiagnosticHandler.cs
Outdated
Show resolved
Hide resolved
56236e3 to
9785055
Compare
|
Hello @CyrusNajmabadi! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Revert "Merge pull request #47914 from CyrusNajmabadi/lspDiagnostics"
…spDiagnostics"" This reverts commit 02a9e20.
…nostics"" This reverts commit 02a9e20.
No description provided.