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

Support isRecommended property for TS completion items

Fixes #40325
上级 4913e7f6
......@@ -31,7 +31,11 @@ class MyCompletionItem extends CompletionItem {
) {
super(entry.name);
this.source = entry.source;
this.sortText = entry.sortText;
// Make sure isRecommended property always comes first
// https://github.com/Microsoft/vscode/issues/40325
this.sortText = entry.isRecommended ? '\0' : entry.sortText;
this.kind = MyCompletionItem.convertKind(entry.kind);
this.position = position;
this.commitCharacters = MyCompletionItem.getCommitCharacters(enableDotCompletions, !useCodeSnippetsOnMethodSuggest, entry.kind);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册