From 12040116426b24ffb21bcbbb953f7f8487f3019a Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Tue, 29 Aug 2023 11:08:49 -0700 Subject: [PATCH] Activate environment when not using integrated terminal for debugging (#21880) For https://github.com/microsoft/vscode-python/issues/4300 --- .../debugger/extension/configuration/resolvers/launch.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/client/debugger/extension/configuration/resolvers/launch.ts b/src/client/debugger/extension/configuration/resolvers/launch.ts index e4828844a7ad..c4ae6a204d71 100644 --- a/src/client/debugger/extension/configuration/resolvers/launch.ts +++ b/src/client/debugger/extension/configuration/resolvers/launch.ts @@ -19,7 +19,7 @@ import { getProgram, IDebugEnvironmentVariablesService } from './helper'; @injectable() export class LaunchConfigurationResolver extends BaseConfigurationResolver { - private isPythonSet = false; + private isCustomPythonSet = false; constructor( @inject(IDiagnosticsService) @@ -38,7 +38,7 @@ export class LaunchConfigurationResolver extends BaseConfigurationResolver { - this.isPythonSet = debugConfiguration.python !== undefined; + this.isCustomPythonSet = debugConfiguration.python !== undefined; if ( debugConfiguration.name === undefined && debugConfiguration.type === undefined && @@ -110,7 +110,9 @@ export class LaunchConfigurationResolver extends BaseConfigurationResolver