mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 01:25:39 -05:00
* Merge from vscode a234f13c45b40a0929777cb440ee011b7549eed2 * update distro * fix layering * update distro * fix tests
27 lines
811 B
TypeScript
27 lines
811 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';
|
|
|
|
export default abstract class ControllerBase implements vscode.Disposable {
|
|
protected _context: vscode.ExtensionContext;
|
|
|
|
protected constructor(context: vscode.ExtensionContext) {
|
|
this._context = context;
|
|
}
|
|
|
|
public get extensionContext(): vscode.ExtensionContext {
|
|
return this._context;
|
|
}
|
|
|
|
abstract activate(): Promise<boolean>;
|
|
|
|
abstract deactivate(): void;
|
|
|
|
public dispose(): void {
|
|
this.deactivate();
|
|
}
|
|
}
|