-
-
Notifications
You must be signed in to change notification settings - Fork 890
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
completion: support async detail completion resolve and more lazy properties #4610
Conversation
6a2f7b7
to
6ecb0e1
Compare
I've tested this with the latest nightly r-a and it unfortunately does not fix #4591. That is, in my testing with |
Interesting, can you repro that with Also, if you can take a trace log ( |
Ah, yes, that is what I see also. In my testing, I just flagged it as a failure when they didn't show initially and never selected the next candidate. Is this the intended final state, or is there more to do? Prior to the r-a change in rust-lang/rust-analyzer#18167, the signature details were shown initially, before switching between candidates, and in testing other editors, including e.g. Emacs with eglot, they show the signature details initially also. |
Yes. To improve the current display issue, we can probably force refresh |
Interesting, thanks for that context. Much appreciated, as is your work on lsp-mode and your quick response on making the PR here.
Makes sense.
For me, personally, I look at the list and decide which candidate to select before interacting with it, so that doesn't really work out. More generally, I'm probably just a bit concerned about people perhaps thinking things are broken when upgrading to Rust 1.83. Hate to ask anything of a fellow maintainer, of course, as all are overworked, but if there's something that can be done straightforwardly, it may be worth doing. |
Until now the even though we marked as supporting
detail
property ofCompletionItem
, we don't actually doingcompletionItem/resolve
for that property but instead relied on another event (doc updated) to update that.This change fixes that and allows us to query the completion item
detail
asynchronously.