Use type information when ranking/sorting code completion items
See original GitHub issuetypedef X FunctionTypeY(
Z z,
A a,
B b,
C c,
);
Then trying to call said function type instances later with
y([cursor]
Doesn’t seem to autocomplete with any instances of z in scope automatically.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Code completion | IntelliJ IDEA Documentation - JetBrains
Code completion is available for custom file types. ... Mark the most relevant item in the completion popup: use the ML relevant proposal ......
Read more >IntelliSense in Visual Studio Code
Selecting the most recently used item is very useful as you can quickly insert the same completion multiple times. "Type to select" means...
Read more >Code Completion - RAD Studio - Embarcadero DocWiki
Code Completion displays a resizable "hint" window that lists valid elements that you can select to add to your code. The hint window...
Read more >Code Completion | TestComplete Documentation
You also can select the needed item using the keyboard and then press Enter or Tab or click in the Code Completion window....
Read more >mstering biology
Campbell Biology W/MasteringBiology Internet Access Code. ... Pearson commits to responsibly protect and use personal information.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t remember; I’d need to go look at the implementation or set up a test case. I know it’s something we’ve talked about before, I just don’t know whether we’ve found the time to make it happen. But I absolutely agree that server ought to include type information in the ordering algorithm.
There’s probably not anything to do in the extension here - the ranking is done by the server initially and then overriden by VS Code once you start typing (since it’s filtered re-ranked client-side).
I believe there have been improvements made to the ranking recently that may have improved this, but if not it’s worth filing suggestions/issue at https://github.com/dart-lang/sdk. With the move to LSP, the little client-side code we do have for completion will disappear (and instead exist inside the LSP interface in the analysis server), and VS Code and the server will talk directly.