Merge from vscode 718331d6f3ebd1b571530ab499edb266ddd493d5

This commit is contained in:
ADS Merger
2020-02-08 04:50:58 +00:00
parent 8c61538a27
commit 2af13c18d2
752 changed files with 16458 additions and 10063 deletions

View File

@@ -19,6 +19,7 @@ import { isPatternInWord } from 'vs/base/common/filters';
export class SnippetCompletion implements CompletionItem {
label: CompletionItemLabel;
detail: string;
insertText: string;
documentation?: MarkdownString;
range: IRange | { insert: IRange, replace: IRange };
@@ -34,7 +35,7 @@ export class SnippetCompletion implements CompletionItem {
name: snippet.prefix,
type: localize('detail.snippet', "{0} ({1})", snippet.description || snippet.name, snippet.source)
};
this.detail = this.label.type!;
this.insertText = snippet.codeSnippet;
this.range = range;
this.sortText = `${snippet.snippetSource === SnippetSource.Extension ? 'z' : 'a'}-${snippet.prefix}`;