Use insertText as filterText for js/ts completions by default
For some completions—such as those provided by IntelliCode—the label results in the incorrect sort order. IntelliCode prefixes completion labels with a unicode star, which means they appear after the normal completions This fix make sure we use the actual text to be inserted for filtering by default instead of the label
This commit is contained in:
parent
364824a864
commit
cd5b4d1bb3
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ class MyCompletionItem extends vscode.CompletionItem {
|
|||
|
||||
if (tsEntry.insertText) {
|
||||
this.insertText = tsEntry.insertText;
|
||||
this.filterText = tsEntry.insertText;
|
||||
|
||||
if (tsEntry.replacementSpan) {
|
||||
this.range = typeConverters.Range.fromTextSpan(tsEntry.replacementSpan);
|
||||
|
|
Loading…
Reference in a new issue