fix for dragged table name (#11376)

* fix for dragged table name

* escaped bracket characters

* fixed escaping brackets

* moved outer brackets

* using interpolated strings
This commit is contained in:
Christopher Suh
2020-07-16 17:53:04 -04:00
committed by GitHub
parent ddb6129d8b
commit 48ef272c66
2 changed files with 5 additions and 4 deletions

View File

@@ -360,7 +360,7 @@ class DropOverlay extends Themable {
// {{SQL CARBON EDIT}}
const editor = this.editorService.activeTextEditorControl as ICodeEditor;
if (untitledOrFileResources[0].resource.scheme === 'Column' || untitledOrFileResources[0].resource.scheme === 'Table') {
SnippetController2.get(editor).insert(`[${untitledOrFileResources[0].resource.query}]`);
SnippetController2.get(editor).insert(untitledOrFileResources[0].resource.query);
return;
}