From 1d42dcf0507741c2dda6e37a6c7e55552837696e Mon Sep 17 00:00:00 2001 From: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com> Date: Fri, 17 Oct 2025 11:16:39 -0700 Subject: [PATCH] Allow undefined uri in api.getEnvironmentVariables --- src/features/execution/envVariableManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/execution/envVariableManager.ts b/src/features/execution/envVariableManager.ts index 28db0c43..d0317f24 100644 --- a/src/features/execution/envVariableManager.ts +++ b/src/features/execution/envVariableManager.ts @@ -37,11 +37,11 @@ export class PythonEnvVariableManager implements EnvVarManager { } async getEnvironmentVariables( - uri: Uri, + uri: Uri | undefined, overrides?: ({ [key: string]: string | undefined } | Uri)[], baseEnvVar?: { [key: string]: string | undefined }, ): Promise<{ [key: string]: string | undefined }> { - const project = this.pm.get(uri); + const project = uri ? this.pm.get(uri) : undefined; const base = baseEnvVar || { ...process.env }; let env = base;