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
{{ message }}
Repository navigation
[completion] CompletionList#isIncomplete ignored on empty or fully filtered items #13735
When a CompletionList returns an empty array of items but has set isIncomplete: true, the content proposal provider is not asked again on further typing.
An empty result is considered no result and doesn't even make it into the view model - so, yes that is that is on purpose.
Incomplete but not empty lists will trigger the ask-again-on-type-logic if the very first time the result-set wasn't filtered to empty. I think that is fair because completions should always match the current line value before the position.
The problem is that if I use the isIncomplete mode, to return different results based on the offset and prefix and there is a position that returns nothing, I don't get retriggered in that same context anymore. E.g. I have a prefix of i where completion returns two elements, then I type s which retriggers, because previous was set toisIncomplete, now I type another character, retriggering happens again and the result is empty. If I now press backspace I no longer get proposals, because VSCode has forgotten about the 'isIncomplete' flag but treats it as the same context.
This iteration we focus on issue grooming. This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.
Activity
jrieken commentedon Oct 14, 2016
An empty result is considered no result and doesn't even make it into the view model - so, yes that is that is on purpose.
Incomplete but not empty lists will trigger the ask-again-on-type-logic if the very first time the result-set wasn't filtered to empty. I think that is fair because completions should always match the current line value before the position.
svenefftinge commentedon Dec 6, 2016
The problem is that if I use the isIncomplete mode, to return different results based on the offset and prefix and there is a position that returns nothing, I don't get retriggered in that same context anymore. E.g. I have a prefix of
iwhere completion returns two elements, then I typeswhich retriggers, because previous was set toisIncomplete, now I type another character, retriggering happens again and the result is empty. If I now press backspace I no longer get proposals, because VSCode has forgotten about the 'isIncomplete' flag but treats it as the same context.vscodebot commentedon Sep 20, 2018
This iteration we focus on issue grooming. This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding and happy coding!
Switch from native snippets to snippet CompletionItems
Return incomplete completions
fix(expert): extend list of editors having VSCode completion bug (#736)
fix(expert): extend list of editors having VSCode completion bug (#736)