提交 ba09fd7f 编写于 作者: J Johannes Rieken

use 'property' instead of 'text' when CompletionItem define no kind

上级 41467b74
......@@ -376,12 +376,12 @@ export const CompletionItemKind = {
case types.CompletionItemKind.File: return 'file';
case types.CompletionItemKind.Reference: return 'reference';
}
return 'text';
return 'property';
},
to(type: modes.SuggestionType): types.CompletionItemKind {
if (!type) {
return types.CompletionItemKind.Text;
return types.CompletionItemKind.Property;
} else {
return types.CompletionItemKind[type.charAt(0).toUpperCase() + type.substr(1)];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册