Add test for opening existing SQL file and typing text into it (#5816)

* Add test for opening existing SQL file and typing text into it

* Clean up

* More cleanup, remove unneeded queryEditor and add smoke test scripts

* Update comments to be clearer
This commit is contained in:
Charles Gagnon
2019-06-04 02:42:39 +00:00
committed by GitHub
parent 9f7d96bad3
commit 50242b2c35
6 changed files with 111 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ import { Terminal } from '../terminal/terminal';
// {{SQL CARBON EDIT}}
import { ConnectionDialog } from '../../sql/connectionDialog/connectionDialog';
import { Profiler } from '../../sql/profiler/profiler';
import { QueryEditors } from '../../sql/queryEditor/queryEditors';
// {{END}}
export interface Commands {
@@ -50,6 +51,7 @@ export class Workbench {
// {{SQL CARBON EDIT}}
readonly connectionDialog: ConnectionDialog;
readonly profiler: Profiler;
readonly queryEditors: QueryEditors;
// {{END}}
constructor(code: Code, userDataPath: string) {
@@ -71,6 +73,7 @@ export class Workbench {
// {{SQL CARBON EDIT}}
this.connectionDialog = new ConnectionDialog(code);
this.profiler = new Profiler(code, this.quickopen);
this.queryEditors = new QueryEditors(code, this.quickopen);
// {{END}}
}
}