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

Deal with 'workspace/diagnostic/refresh' message #4600

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

alanz
Copy link
Contributor

@alanz alanz commented Oct 28, 2024

lsp-mode does not currently support pull diagnostics.

There is a recent change to the spec where the server can notify the client to request diagnostics, when the pull mode is being used.

This is implemented incorrectly in a number of servers, which do not first check the relevant client capability.

Mitigate this problem by
a. Sending client capabilities to day that this is not supported b. Putting a null handler in for the server request message.

Closes #4570

lsp-mode does not currently support pull diagnostics.

There is a recent change to the spec where the server can notify the
client to request diagnostics, when the pull mode is being used.

This is implemented incorrectly in a number of servers, which do not
first check the relevant client capability.

Mitigate this problem by
a. Sending client capabilities to day that this is not supported
b. Putting a null handler in for the server request message.

Closes emacs-lsp#4570
@alanz alanz requested a review from yyoncho October 30, 2024 17:26
@alanz alanz requested a review from jcs090218 November 8, 2024 09:04
@jcs090218 jcs090218 merged commit 2f72a48 into emacs-lsp:master Nov 8, 2024
11 of 13 checks passed
@jcs090218
Copy link
Member

Thanks for taking care of this! :D

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.

Warning (lsp-mode): Unknown request method: workspace/diagnostic/refresh
2 participants