question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use type information when ranking/sorting code completion items

See original GitHub issue
typedef 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:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
bwilkersoncommented, Mar 29, 2018

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.

0reactions
DanTupcommented, Oct 27, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found