Skip to content
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 provider show completions at the end of the list #105719

Closed
svipas opened this issue Aug 31, 2020 · 2 comments
Closed

Completion provider show completions at the end of the list #105719

svipas opened this issue Aug 31, 2020 · 2 comments
Assignees
Labels
*dev-question VS Code Extension Development Question suggest IntelliSense, Auto Complete

Comments

@svipas
Copy link
Contributor

svipas commented Aug 31, 2020

@mjbvz Is it possible to show completions at the end of the list?

I'm using this one:

completionItem.sortText = "\uffff9999" + i;

But still completions are not at the end of the list. I know they are sorted additionally by the text you typed, etc. but maybe there's a way to make them at the end of the list always?

@jrieken
Copy link
Member

jrieken commented Aug 31, 2020

No, that's not possible as suggestions get also sorted by the match score of the selected prefix and there is no reason why we should hide a good matching suggestion

@jrieken jrieken closed this as completed Aug 31, 2020
@jrieken jrieken added *dev-question VS Code Extension Development Question suggest IntelliSense, Auto Complete labels Aug 31, 2020
@jrieken
Copy link
Member

jrieken commented Aug 31, 2020

The only possible workaround is to have no prefix selected and to re-compute suggestions with each keystroke (which can be accomplished via incomplete suggestion). But on a metalevel: why would you hide your suggestions at all?

@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*dev-question VS Code Extension Development Question suggest IntelliSense, Auto Complete
Projects
None yet
Development

No branches or pull requests

2 participants