mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
* Changed the activation event from onCommand to startup "*" * Refractored some code to fix the issue * Made some PR related changes and fixed a condition where the same error was occurring when the flatFileImport has to download binaries from the internet. * Reverted activation event back to previous state as it had no effect. * Made changes mentioned in the PR Co-authored-by: Aasim Shahnawaz Khan <aaskhan@microsoft.com>
This commit is contained in:
@@ -10,24 +10,13 @@ import MainController from './controllers/mainController';
|
||||
|
||||
let controllers: ControllerBase[] = [];
|
||||
|
||||
export function activate(context: vscode.ExtensionContext) {
|
||||
let activations: Promise<boolean>[] = [];
|
||||
|
||||
export async function activate(context: vscode.ExtensionContext): 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;
|
||||
});
|
||||
await mainController.activate();
|
||||
return true;
|
||||
}
|
||||
|
||||
export function deactivate() {
|
||||
|
||||
Reference in New Issue
Block a user