Fix handling of connections in editors (#9682) (#9688)

* fix handling of connections in editors

* initial tests

* remove test
# Conflicts:
#	src/sql/workbench/browser/taskUtilities.ts
#	src/sql/workbench/services/queryEditor/browser/queryEditorService.ts
#	src/sql/workbench/services/queryEditor/test/common/testQueryEditorService.ts
This commit is contained in:
Anthony Dresser
2020-03-22 09:40:57 -07:00
committed by GitHub
parent f579d1bb8d
commit 0e4204752a
9 changed files with 54 additions and 43 deletions

View File

@@ -60,7 +60,7 @@ export class ScriptAction extends Action {
public async run(element: TaskNode): Promise<boolean> {
if (element instanceof TaskNode) {
if (element.script && element.script !== '') {
this._queryEditorService.newSqlEditor(element.script);
this._queryEditorService.newSqlEditor({ initalContent: element.script });
}
}
return true;