Closed natanfudge closed 5 years ago
@natanfudge So here is how i imagine completions should be prioritized
I don't have control over the c# ext's completions. Instead I manipulate this extension's labels to overall sort in this order:
And the goal for the sort order would probably be:
A serious hack is in order to be able to change other extensions' completions.
Regarding speed: it seems that it actually doesn't take that long? Not sure why I'm getting different results now.
It appears that the calculations actually don't take barely any time, it's just vscode takes some time to load the completions.
Currently all logic is done every time provideCompletionItems is called. When the word to complete is empty it can take around 200ms to compute. This could grow much worse with additional references and a server involved. Therefore we initialize a data structure at activation that needs to be able to do the following things at lg(n) or faster time (where n is the total number of references):
A sorted array of
vscode.completionItem
should do.