-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
favor local types and values in autocomplete popup over ambients declaration #15024
Comments
This was reported against VSCode recently as well: microsoft/vscode#29613 For code such as: var cancel = 123
can| The suggestions for
I believe that variables and parameters should have a higher sort text (or that globals should have a lower sort text) |
A feature that VS has today is remembering the last entry the user selected in the completion list. so the first time you type |
@mjbvz thoughts? |
I'd still prefer local scope to get higher weighting. The remembering of the last selection only solves a small subset of the use cases that I care about. |
VS Code has added support for remembering suggestions with the I still think that adding some basic sorting based on scope would be very helpful. @DanielRosenwasser Can we revisit this feature request? |
@sheetalkamat this is something we'd like to deliver for 3.5 specifically |
More VS Code feedback related to suggestion sort order and locality: microsoft/vscode#47727 |
there is also a very annoying thing with remembering-last-entry bonus:
how do i unfavor some accidental picks? |
If you Undo ( |
The ordering we think might be best:
Caveat: "real" things (non-suggestions) should always shadow suggestions |
@RyanCavanaugh @mjbvz Also what happens to javascript symbols. Current behavior is that everything except JavaScript has "0" and JavaScript symbols are "1". Does JavaScript come after auto import ? |
Yeah that doesn't feel right. We should either:
The first approach definitely seems more straightforward. VS Code's suggestion sorting should also help out so that better matches are shown first For the second point, the javascript symbol suggestions (we call them |
how about we give it as a configurable option? something like: {
"auto-completion-priorities": ["locals", "members", "lexical", "ambients", "imports"]
} or {
"auto-completion-priorities": "merged"
} |
it would be nice to have some visible separation between the groups (shades of background) |
... looks like an overkill, disregard please |
it's not clear to me what drives the order of the list of autocomplete popup suggestions, i wish my local types and values were listed first, and ambients came after them
The text was updated successfully, but these errors were encountered: