-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
ResolveCompletionItem is called on each keystroke #48619
Comments
This has been happening for over a year.
The root cause, is that the variable tracking the current focused item is reset. This was done in a35c7da. @joaomoreno Do you recall the reason for this change? I would suggest the fix to be ac12c69, but am not sure if we should take this for April |
My commit message and related issue #23408 seem to be very helpful. I can't even imagine how broken it was 🐛 Serious now: I'm not sure. The suggest widget used to narrow down suggestions by itself, without asking the provider to narrow down, except if the provider returns an incomplete result. I can only reason that in that case, |
@jrieken thoughts? |
Don't reset the item when it's the same completion model? |
That works. Pushing this to May as there is no visible user impact of this issue. |
…when there are completions of the incomplete kind
The completion model differs for each keystroke if there is a completion provider giving result of the incomplete kind. So checking the completion model doesn't always work Pushed another fix 2e0a564 which doesn't rely on the completion model. Moving this bug for June for another round of verification. |
Steps to Reproduce:
"typescript.tsserver.trace": "messages"
foo
and start typingBug
In the typescript output panel, notice multiple
completionEntryDetails
calls in the logs as you type. This is caused by vs code callingresolveCompletionItem
on the same item again for each keystrokeThe text was updated successfully, but these errors were encountered: