mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user