Skip to content

Add lsp-flush-delayed-changes-before-next-message option #4512

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

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

necto
Copy link
Contributor

@necto necto commented Jul 28, 2024

Some LSP clients spam the server with message, such as "textDocument/codeAction" requests on every keystroke, so if we require synchronizing the delayed changes before the next LSP message, it looses its meaning: In most cases the next cursor movement comes right after a change, so lsp--send-no-wait forces the change notification out before it sends the codeAction request.

Let the users of the slow LSP servers that depend on this change notification throttling customize this behavior to choose their own tradeoff.

Some LSP clients spam the server with message, such as
"textDocument/codeAction" requests on every keystroke, so if we require
synchronizing the delayed changes before the next LSP message, it looses
its meaning: In most cases the next cursor movement comes right after a
change, so `lsp--send-no-wait` forces the change notification out before
it sends the codeAction request.

Let the users of the slow LSP servers that depend on this change
notification throttling customize this behavior to choose their own
tradeoff.
@jcs090218 jcs090218 merged commit c8d8bd0 into emacs-lsp:master Aug 1, 2024
10 of 13 checks passed
@jcs090218
Copy link
Member

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants