You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using lsp-mode with Emacs. It sends a textDocument/didChange event with every keystroke, which causes rust-analyzer to respond with thousands of immediate $/progress events. In some clients, this can cause client performance issues (see e.g. #7590).
In my case, the issue is visual noise: lsp-mode displays each $/progress update in the modeline. These can be disabled by setting lsp-progress-function to 'ignore, but loses important information (particularly when loading a new project). See also brotzeit/rustic#251 which I believe has the same root issue.
The lsp-mode devs on discord suggested that rust-analyzer should be debouncing the textDocument/didChange events, and that a similar fix was made with clojure-lsp.
The text was updated successfully, but these errors were encountered:
I don't think we want debouncing just yet because it adds latency and makes for a worse user experience.
Instead, we should stop (doing the thing that's) sending those progress messages on each keypress, like in #9922. They don't even mean what they appear to mean.
I'm using
lsp-mode
with Emacs. It sends atextDocument/didChange
event with every keystroke, which causes rust-analyzer to respond with thousands of immediate$/progress
events. In some clients, this can cause client performance issues (see e.g. #7590).In my case, the issue is visual noise:
lsp-mode
displays each$/progress
update in the modeline. These can be disabled by settinglsp-progress-function
to'ignore
, but loses important information (particularly when loading a new project). See also brotzeit/rustic#251 which I believe has the same root issue.The
lsp-mode
devs on discord suggested thatrust-analyzer
should be debouncing thetextDocument/didChange
events, and that a similar fix was made withclojure-lsp
.The text was updated successfully, but these errors were encountered: