Update server reports extension version, fix its build breaks, and reduce its size to 86Kb (#4062)

* Updated version
* On building found it had build break due to unused imports. Turns out none of the code is used (it's just a package.json + SQL file extension) so removed it all
* Removed all unnecessary node module imports, reducing size from 5.4MB to 86KB. We should probably do this for all extensions
This commit is contained in:
Kevin Cunnane
2019-02-15 10:33:22 -08:00
committed by GitHub
parent 930e14e258
commit 4843480fbf
9 changed files with 1301 additions and 2779 deletions

View File

@@ -7,33 +7,10 @@
import * as vscode from 'vscode';
import ControllerBase from './controllers/controllerBase';
import MainController from './controllers/mainController';
let controllers: ControllerBase[] = [];
export function activate(context: vscode.ExtensionContext): Promise<boolean> {
let activations: Promise<boolean>[] = [];
// Start the main controller
let mainController = new MainController(context);
controllers.push(mainController);
context.subscriptions.push(mainController);
activations.push(mainController.activate());
return Promise.all(activations)
.then((results: boolean[]) => {
for (let result of results) {
if (!result) {
return false;
}
}
return true;
});
export function activate(context: vscode.ExtensionContext): void {
// No-op
}
export function deactivate(): void {
for (let controller of controllers) {
controller.deactivate();
}
// No-op
}