rewrite some automation; add notebook tests (#10853)

This commit is contained in:
Anthony Dresser
2020-06-11 13:17:10 -07:00
committed by GitHub
parent f862d77f34
commit 6b86cbdd6e
6 changed files with 57 additions and 13 deletions

View File

@@ -26,6 +26,7 @@ import { ConnectionDialog } from './sql/connectionDialog';
import { Profiler } from './sql/profiler';
import { QueryEditors } from './sql/queryEditors';
import { QueryEditor } from './sql/queryEditor';
import { Notebook as SqlNotebook } from './sql/notebook';
// {{END}}
export interface Commands {
@@ -56,6 +57,7 @@ export class Workbench {
readonly profiler: Profiler;
readonly queryEditors: QueryEditors;
readonly queryEditor: QueryEditor;
readonly sqlNotebbok: SqlNotebook;
// {{END}}
constructor(code: Code, userDataPath: string) {
@@ -79,6 +81,7 @@ export class Workbench {
this.profiler = new Profiler(code, this.quickaccess);
this.queryEditors = new QueryEditors(code, this.editors);
this.queryEditor = new QueryEditor(code);
this.sqlNotebbok = new SqlNotebook(code, this.quickaccess, this.quickinput, this.editors);
// {{END}}
this.notebook = new Notebook(this.quickaccess, code);
}