Fix handling of connections in editors (#9682)

* fix handling of connections in editors

* initial tests

* remove test
This commit is contained in:
Anthony Dresser
2020-03-21 14:13:32 -07:00
committed by GitHub
parent a649461409
commit a7dbb68f7d
9 changed files with 52 additions and 41 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;