/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { Explorer } from './explorer'; import { ActivityBar } from './activityBar'; import { QuickOpen } from './quickopen'; import { QuickInput } from './quickinput'; import { Extensions } from './extensions'; import { Search } from './search'; import { Editor } from './editor'; import { SCM } from './scm'; import { Debug } from './debug'; import { StatusBar } from './statusbar'; import { Problems } from './problems'; import { SettingsEditor } from './settings'; import { KeybindingsEditor } from './keybindings'; import { Editors } from './editors'; import { Code } from './code'; import { Terminal } from './terminal'; // {{SQL CARBON EDIT}} import { ConnectionDialog } from './sql/connectionDialog'; import { Profiler } from './sql/profiler'; import { QueryEditors } from './sql/queryEditors'; // {{END}} export interface Commands { runCommand(command: string): Promise; } export class Workbench { readonly quickopen: QuickOpen; readonly quickinput: QuickInput; readonly editors: Editors; readonly explorer: Explorer; readonly activitybar: ActivityBar; readonly search: Search; readonly extensions: Extensions; readonly editor: Editor; readonly scm: SCM; readonly debug: Debug; readonly statusbar: StatusBar; readonly problems: Problems; readonly settingsEditor: SettingsEditor; readonly keybindingsEditor: KeybindingsEditor; readonly terminal: Terminal; // {{SQL CARBON EDIT}} readonly connectionDialog: ConnectionDialog; readonly profiler: Profiler; readonly queryEditors: QueryEditors; // {{END}} constructor(code: Code, userDataPath: string) { this.editors = new Editors(code); this.quickopen = new QuickOpen(code, this.editors); this.quickinput = new QuickInput(code); this.explorer = new Explorer(code, this.editors); this.activitybar = new ActivityBar(code); this.search = new Search(code); this.extensions = new Extensions(code); this.editor = new Editor(code, this.quickopen); this.scm = new SCM(code); this.debug = new Debug(code, this.quickopen, this.editors, this.editor); this.statusbar = new StatusBar(code); this.problems = new Problems(code); this.settingsEditor = new SettingsEditor(code, userDataPath, this.editors, this.editor, this.quickopen); this.keybindingsEditor = new KeybindingsEditor(code); this.terminal = new Terminal(code, this.quickopen); // {{SQL CARBON EDIT}} this.connectionDialog = new ConnectionDialog(code); this.profiler = new Profiler(code, this.quickopen); this.queryEditors = new QueryEditors(code, this.quickopen); // {{END}} } }