From a09b1ffdf812b4d14899d4e086a1f619dc104f0f Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Tue, 7 Nov 2017 14:50:37 -0800 Subject: [PATCH 1/2] do not wait for status bar to update --- src/client/extension.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/extension.ts b/src/client/extension.ts index a5416239c02e..90c2fbca3d76 100644 --- a/src/client/extension.ts +++ b/src/client/extension.ts @@ -65,11 +65,12 @@ export async function activate(context: vscode.ExtensionContext) { sortImports.activate(context, formatOutChannel); const interpreterManager = new InterpreterManager(); await interpreterManager.autoSetInterpreter(); - await interpreterManager.refresh(); + interpreterManager.refresh(); context.subscriptions.push(interpreterManager); const interpreterVersionService = new InterpreterVersionService(); context.subscriptions.push(new SetInterpreterProvider(interpreterManager, interpreterVersionService)); context.subscriptions.push(...activateExecInTerminalProvider()); + // tslint:disable-next-line:no-floating-promises context.subscriptions.push(activateUpdateSparkLibraryProvider()); activateSimplePythonRefactorProvider(context, formatOutChannel); context.subscriptions.push(activateFormatOnSaveProvider(PYTHON, formatOutChannel)); From 4410671a523818830c40ec3eed4b95687a43144a Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Tue, 7 Nov 2017 15:12:08 -0800 Subject: [PATCH 2/2] do not wait for status bar to update --- src/client/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/extension.ts b/src/client/extension.ts index 90c2fbca3d76..d1fd4df30fba 100644 --- a/src/client/extension.ts +++ b/src/client/extension.ts @@ -65,12 +65,12 @@ export async function activate(context: vscode.ExtensionContext) { sortImports.activate(context, formatOutChannel); const interpreterManager = new InterpreterManager(); await interpreterManager.autoSetInterpreter(); + // tslint:disable-next-line:no-floating-promises interpreterManager.refresh(); context.subscriptions.push(interpreterManager); const interpreterVersionService = new InterpreterVersionService(); context.subscriptions.push(new SetInterpreterProvider(interpreterManager, interpreterVersionService)); context.subscriptions.push(...activateExecInTerminalProvider()); - // tslint:disable-next-line:no-floating-promises context.subscriptions.push(activateUpdateSparkLibraryProvider()); activateSimplePythonRefactorProvider(context, formatOutChannel); context.subscriptions.push(activateFormatOnSaveProvider(PYTHON, formatOutChannel));