Skip to content

fix: add workspace/diagnostic information to LSPSuppor.md - #1255

Merged
angelozerr merged 1 commit into
redhat-developer:mainfrom
sergeysavchuk:1253_add_workspace_diagnostic_to_LSPSupport
Sep 5, 2025
Merged

angelozerr merged 1 commit into
redhat-developer:mainfrom
sergeysavchuk:1253_add_workspace_diagnostic_to_LSPSupport

Conversation

@sergeysavchuk

Copy link
Copy Markdown
Contributor

Update the LSPSupport.md file to explicitly document the support status for workspace/diagnostic

Fixes #1253

Comment thread docs/LSPSupport.md
* ✅ [workspace/didRenameFiles](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_didRenameFiles).
* ❌ [workspace/willDeleteFiles](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_willDeleteFiles).
* ❌ [workspace/didDeleteFiles](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_didDeleteFiles).
* ❌ [workspace/diagnostic](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_diagnostic).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be supported, no?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See

public CompletableFuture<Void> refreshDiagnostics() {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at the moment VS Code & IDEA support the pull model with workspace/diagnostic.

The workspace/diagnostic/refresh request is sent from the server to the client.

But
The workspace diagnostic workspace/diagnostic request is sent from the client to the server to ask the server to compute workspace wide diagnostics which previously were pushed from the server to the client.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad you are right! Sorry.

Thanks for your contribution!

@angelozerr angelozerr added the documentation Improvements or additions to documentation label Sep 5, 2025
@angelozerr angelozerr added this to the 0.16.0 milestone Sep 5, 2025
@angelozerr
angelozerr merged commit 4496d4c into redhat-developer:main Sep 5, 2025
@sergeysavchuk

Copy link
Copy Markdown
Contributor Author

@angelozerr as you mentioned above about LanguageClientImpl.java#L212 there is a support for workspace/diagnostic/refresh but the client capability is not enables here

I think we should enable it or was there a reason not to include this by default?

        // Refresh support for Diagnostics
        workspaceClientCapabilities.setDiagnostics(new DiagnosticWorkspaceCapabilities(Boolean.TRUE));

@angelozerr

Copy link
Copy Markdown
Contributor

@angelozerr as you mentioned above about LanguageClientImpl.java#L212 there is a support for workspace/diagnostic/refresh but the client capability is not enables here

I think we should enable it or was there a reason not to include this by default?

        // Refresh support for Diagnostics
        workspaceClientCapabilities.setDiagnostics(new DiagnosticWorkspaceCapabilities(Boolean.TRUE));

No :) It is a bug. Please create a PR.

@sergeysavchuk

Copy link
Copy Markdown
Contributor Author

@angelozerr Ok, I'll opened a separate issue and will fix it, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Workspace Diagnostics workspace/diagnostic

2 participants