mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-31 01:00:29 -04:00
Merge from vscode 718331d6f3ebd1b571530ab499edb266ddd493d5
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user