Skip to content

CompletionList should be able to point to best suggestion #47102

@ghost

Description

Issue Type: Bug

(Recommended completions were added in microsoft/TypeScript#20020.)
Test with:

enum E { A, B }
const e: E = 

Hit ctrl-space to get completions after the =. E will be put at the top of the completions list instead of sorted by name. The problem is, the completion list is immediately focused on console, leaving E offscreen where it will probably never be seen. It would be better to immediately focus on E, and leave it sorted by alphabetically.

VS Code version: Code - Insiders 1.22.0-insider (6c22e21, 2018-03-30T14:36:39.526Z)
OS version: Linux x64 4.13.0-37-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2600)
Load (avg) 1, 1, 1
Memory (System) 7.63GB (1.66GB free)
Process Argv /usr/share/code-insiders/code-insiders src
Screen Reader no
VM 0%
Extensions: none

Metadata

Metadata

Assignees

Labels

apifeature-requestRequest for new features or functionalitysuggestIntelliSense, Auto Complete

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions