mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 01:25:36 -05:00
* add sample for server reports * add license and headers for all samples * add new icons for sp_whoisactive * address comments and use sqlops node module
26 lines
771 B
TypeScript
26 lines
771 B
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';
|
|
|
|
export default abstract class ControllerBase implements vscode.Disposable {
|
|
protected _context: vscode.ExtensionContext;
|
|
|
|
public constructor(context: vscode.ExtensionContext) {
|
|
this._context = context;
|
|
}
|
|
|
|
abstract activate(): Promise<boolean>;
|
|
|
|
abstract deactivate(): void;
|
|
|
|
public dispose(): void {
|
|
this.deactivate();
|
|
}
|
|
}
|
|
|