提交 88113c5d 编写于 作者: J Johannes Rieken

tweak snippets type label

上级 a2be50ec
......@@ -32,11 +32,8 @@ export class SnippetCompletion implements CompletionItem {
readonly snippet: Snippet,
range: IRange | { insert: IRange, replace: IRange }
) {
this.label = {
name: snippet.prefix,
type: localize('detail.snippet', "{0} ({1})", snippet.description || snippet.name, snippet.source)
};
this.detail = this.label.type!;
this.label = { name: snippet.prefix, type: snippet.name };
this.detail = localize('detail.snippet', "{0} ({1})", snippet.description || snippet.name, snippet.source);
this.insertText = snippet.codeSnippet;
this.range = range;
this.sortText = `${snippet.snippetSource === SnippetSource.Extension ? 'z' : 'a'}-${snippet.prefix}`;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册