mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 04:17:37 +00:00
more clever sortText for TypeScript completion items, fixes #1190
This commit is contained in:
parent
cb30cde085
commit
1d7facf02b
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class MyCompletionItem extends CompletionItem {
|
|||
|
||||
constructor(entry: CompletionEntry) {
|
||||
super(entry.name);
|
||||
this.sortText = entry.sortText;
|
||||
this.sortText = `${entry.name}-${entry.sortText}`; // tsserver sortText is "0" and "1" which is not good when comparing to snippets for instance
|
||||
this.kind = MyCompletionItem.convertKind(entry.kind);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue