mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-21 20:30:29 -04:00
* Revert "Revert "Port the Azure Resource Explorer extension to core." (#2770)"
This reverts commit 210447cd37.
* WIP1
* Add custom build task for azurecore extension
* Fix azurecore output path for macOS build
* Fix linux gulp task name
35 lines
961 B
TypeScript
35 lines
961 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';
|
|
|
|
import { AppContext } from '../appContext';
|
|
import { ApiWrapper } from '../apiWrapper';
|
|
|
|
export default abstract class ControllerBase implements vscode.Disposable {
|
|
|
|
public constructor(protected appContext: AppContext) {
|
|
}
|
|
|
|
protected get apiWrapper(): ApiWrapper {
|
|
return this.appContext.apiWrapper;
|
|
}
|
|
|
|
public get extensionContext(): vscode.ExtensionContext {
|
|
return this.appContext && this.appContext.extensionContext;
|
|
}
|
|
|
|
abstract activate(): Promise<boolean>;
|
|
|
|
abstract deactivate(): void;
|
|
|
|
public dispose(): void {
|
|
this.deactivate();
|
|
}
|
|
}
|
|
|