提交 dcaee0a1 编写于 作者: M Matt Bierner

De-prioritze auto-imports

Fixes #40311
上级 3fb06977
......@@ -34,9 +34,17 @@ class MyCompletionItem extends CompletionItem {
super(entry.name);
this.source = entry.source;
// Make sure isRecommended property always comes first
// https://github.com/Microsoft/vscode/issues/40325
this.sortText = entry.isRecommended ? '\0' : entry.sortText;
if (entry.isRecommended) {
// Make sure isRecommended property always comes first
// https://github.com/Microsoft/vscode/issues/40325
this.sortText = '\0' + entry.sortText;
} else if (entry.source) {
// De-prioritze auto-imports
// https://github.com/Microsoft/vscode/issues/40311
this.sortText = '\uffff' + entry.sortText;
} else {
this.sortText = entry.sortText;
}
this.kind = MyCompletionItem.convertKind(entry.kind);
this.position = position;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册