-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Completions ignores sortText #109067
Comments
@jrieken I'll be more than happy to create a PR if it'll be merged |
If it's a good PR it'll be merged. Tho, I wonder if there was a specific reason for why things are they way they are. I could have also sworn that I have fixed this already... Needs a short trip down memory lane before making this change 🤔 |
Cool, let me know if you want me to provide a fix. Will ping every day. Thanks! |
We give our suggestions You can install TabNine and test it yourself. |
Check this out: Lines 3855 to 3863 in cb1dce0
Basically, what is says (tries to say) is that once a prefix exists ( |
Hard to say. What does the explain widget say? |
|
I think you need to trigger it first on an item with details, like |
Building TabNine we encountered a bug in completions, where
sortText
is ignored if anyCompletionItem
does not containsortText
attribute. This causes the IDE to totally ignore thesortText
in the ordering, forcing the sort algorithm to fallback tolabel
only.Steps to Reproduce:
sortText
(such TabNine) & a source that does not providesortText
(such the built in lsp).label
and not on thesortText
.I traced the bug to this line:
https://github.com/microsoft/vscode/blob/master/src/vs/editor/contrib/suggest/suggest.ts#L274
The problem is that it is checked that
sortText
is present on bothCompletionItem
s, breaking the sort functionality if any single item does not implementsortText
.Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: