Closed ensc closed 1 day ago
Paging @SomeoneToIgnore. 😉
I believe this should be fixed by https://github.com/rust-lang/rust-analyzer/pull/18503 as my tests during that PR had brought the imports.
Can you please retest a newer r-a nightly and see if it had improved things for you?
solved in recent r-a; thx
Recent
rust-analyzer
versions do not seem to outputadditionalTextEdits
information anymore. Neither intextDocument/completion
nor the correspondingcompletionItem/resolve
request.E.g. when asking for completion of
HashMap
inI expect that
use std::collections::HashMap
is also added to the code. This happened with previous rust-analyzer versions (e.g. rust-analyzer 1.83.0-nightly (55a22d2 2024-10-06) but stopped with the recent ones.The i/o logs show empty
"additionalTextEdits": [],
fields in the completion and resolve response.initialize
request
response
textDocument/completion
requestrequest
response
completionItem/resolve
requestrequest
response
rust-analyzer version: rust-analyzer 1.84.0-nightly (b91a3a0 2024-11-07)
rustc version: rustc 1.84.0-nightly (b91a3a056 2024-11-07)
editor or extension: emacs + lsp-mode
relevant settings: none; seen with
lsp-start-plain