Skip to content

Conversation

@sheetalkamat
Copy link
Member

Fixes #15024

Sorting done as per #15024 (comment)
Sorting as per #15024 (comment) is more complicated and needs more thought so for now enabling simple sorting.

  1. Things from the lexical scope that are declared in the current file (including top-level variables in a script file)
  2. Suggested class members
  3. Things from global lexical scope and keywords
  4. Auto-import suggestions
  5. JavaScript identifiers

Copy link
Member

@weswigham weswigham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linked vscode issue mentioned something about a "location bonus" - is that further refining the order of zero-ranked completions on the vscode side by using brace matching and proximity?

@sheetalkamat
Copy link
Member Author

@weswigham yes

@sheetalkamat sheetalkamat merged commit 38f689d into master May 21, 2019
@sheetalkamat sheetalkamat deleted the completionsSorting branch May 21, 2019 19:59
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

favor local types and values in autocomplete popup over ambients declaration

3 participants