mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
* cms connections dont save * added value to enum * remove refresh and update provider name for cms * removed ownerUri from saved connection and contributed to array * removed owneruri * ownerUri not needed any more * removed AAD from cms * initial review * changed comments * add back saveProfile option for connectionProfile * review fixes and other UI improvements * fixed auth * added cms integration tests * added constants * removed utils from apiwrapper * changed connection type name * review comments * clearer code and addressed reviews
37 lines
1.5 KiB
TypeScript
37 lines
1.5 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
'use strict';
|
|
|
|
import * as vscode from 'vscode';
|
|
import CmsResourceController from './controllers/cmsResourceController';
|
|
import { AppContext } from './appContext';
|
|
import ControllerBase from './controllers/controllerBase';
|
|
import { ApiWrapper } from './apiWrapper';
|
|
import { CmsUtils } from './cmsUtils';
|
|
|
|
let controllers: ControllerBase[] = [];
|
|
|
|
// this method is called when your extension is activated
|
|
// your extension is activated the very first time the command is executed
|
|
export function activate(extensionContext: vscode.ExtensionContext) {
|
|
const apiWrapper = new ApiWrapper();
|
|
const cmsUtils = new CmsUtils();
|
|
let appContext = new AppContext(extensionContext, apiWrapper, cmsUtils);
|
|
let activations: Thenable<boolean>[] = [];
|
|
|
|
const cmsResourceController = new CmsResourceController(appContext);
|
|
controllers.push(cmsResourceController);
|
|
extensionContext.subscriptions.push(cmsResourceController);
|
|
activations.push(cmsResourceController.activate());
|
|
}
|
|
|
|
// this method is called when your extension is deactivated
|
|
export function deactivate() {
|
|
for (let controller of controllers) {
|
|
controller.deactivate();
|
|
}
|
|
}
|