Skip to content

Commit

Permalink
[FIX] client: fix change config when disabled and pythonExtensionMode
Browse files Browse the repository at this point in the history
  • Loading branch information
Louciole committed Jan 16, 2024
1 parent 8236788 commit 9401ddd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions vscode/client/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,7 @@ export async function activate(context: ExtensionContext): Promise<void> {
setMissingStateVariables(context);
validateState(context);

if (global.IS_PYTHON_EXTENSION_READY){
await initializePython(context.subscriptions);
}

await initStatusBar(context);
await initializeSubscriptions(context);

Expand Down Expand Up @@ -753,7 +751,8 @@ async function getPythonPath(context): Promise<string>{

//trying to use the VScode python extension
if (interpreter && global.IS_PYTHON_EXTENSION_READY !== false) {
config ? pythonPath = interpreter.path[0] : pythonPath = null;
pythonPath = interpreter.path[0]
await initializePython(context.subscriptions);
global.IS_PYTHON_EXTENSION_READY = true;
} else {
global.IS_PYTHON_EXTENSION_READY = false;
Expand Down

0 comments on commit 9401ddd

Please sign in to comment.