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

Add 'preselect' field to the CompletionItem #371

Closed
MikhailArkhipov opened this issue Jul 3, 2018 · 1 comment
Closed

Add 'preselect' field to the CompletionItem #371

MikhailArkhipov opened this issue Jul 3, 2018 · 1 comment

Comments

@MikhailArkhipov
Copy link

MikhailArkhipov commented Jul 3, 2018

VS Code 1.25 adds new preselect field to the CompletionItem. The field allows completion providers to specify which item should be initially selected in the completion list.

By default clients usually select first or last used items, which is limiting. A completion provider may choose to select different item based on other conditions, such as current code editor context, probability of use of certain items, and so on.

This request is to add equivalent field to the CompletionItem structure therefore allowing use of preselection in VS Code from language servers as it is possible from the regular completion provider.

https://github.com/Microsoft/vscode/blob/9ba606df0ee5c2a386eac532771ac343a62f1985/src/vs/workbench/api/node/extHostTypes.ts

Per
microsoft/vscode#35551
microsoft/vscode@62e0f34

@dbaeumer
Copy link
Member

Closing the issue. I have release new client and server version that have support for this.

@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 24, 2018
@dbaeumer dbaeumer removed this from the On Deck milestone Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants