mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 01:25:38 -05:00
* Initial commit of Database Projects extension * Removing unused references, correcting license, tabs -> spaces in package.json * cleaning up linter errors
25 lines
877 B
TypeScript
25 lines
877 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import * as vscode from 'vscode';
|
|
import MainController from './controllers/mainController';
|
|
|
|
let controllers: MainController[] = [];
|
|
|
|
export async function activate(context: vscode.ExtensionContext): Promise<void> {
|
|
// Start the main controller
|
|
let mainController = new MainController(context);
|
|
controllers.push(mainController);
|
|
context.subscriptions.push(mainController);
|
|
|
|
await mainController.activate();
|
|
}
|
|
|
|
export function deactivate(): void {
|
|
for (let controller of controllers) {
|
|
controller.deactivate();
|
|
}
|
|
}
|