Is completionItem/resolve
valid after a document change?
#2060
Labels
Milestone
completionItem/resolve
valid after a document change?
#2060
As far as I can see, the specification does not explicitly forbid the following sequence:
textDocument/completion
textDocument/didChange
completionItem/resolve
for one of the items returned in step 1.In rust-analyzer, we made the assumption that completion items would not be possible to resolve after changing the document. It turns out that at least Neovim and Helix seem to change the document while the user cycles through completions, and then try to resolve the outdated completion items though. So the question is, is this a client error or does the server need to support this? If this is intended to be supported, for how long do completion items need to be resolvable? The discussion in #1802 came close to touching upon this, but as far as I see didn't answer it.
rust-lang/rust-analyzer#18547
helix-editor/helix#12119
The text was updated successfully, but these errors were encountered: