mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-31 01:00:29 -04:00
Merge from vscode 70dc55955d586ebd427658b43cdb344f2047f9c2 (#6789)
This commit is contained in:
@@ -168,13 +168,14 @@ class InsertSnippetAction extends EditorAction {
|
||||
return quickInputService.pick(picks, { matchOnDetail: true }).then(pick => resolve(pick && pick.snippet), reject);
|
||||
}
|
||||
}).then(async snippet => {
|
||||
if (!snippet) {
|
||||
return;
|
||||
}
|
||||
let clipboardText: string | undefined;
|
||||
if (snippet.needsClipboard) {
|
||||
clipboardText = await clipboardService.readText();
|
||||
}
|
||||
if (snippet) {
|
||||
SnippetController2.get(editor).insert(snippet.codeSnippet, { clipboardText });
|
||||
}
|
||||
SnippetController2.get(editor).insert(snippet.codeSnippet, { clipboardText });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user