Skip to content

Commit 0d6d5ae

Browse files
authored
Merge branch 'main' into copilot/add-toggle-for-uv-venvs
2 parents ea1bca3 + 26903de commit 0d6d5ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/features/execution/envVariableManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ export class PythonEnvVariableManager implements EnvVarManager {
3737
}
3838

3939
async getEnvironmentVariables(
40-
uri: Uri,
40+
uri: Uri | undefined,
4141
overrides?: ({ [key: string]: string | undefined } | Uri)[],
4242
baseEnvVar?: { [key: string]: string | undefined },
4343
): Promise<{ [key: string]: string | undefined }> {
44-
const project = this.pm.get(uri);
44+
const project = uri ? this.pm.get(uri) : undefined;
4545

4646
const base = baseEnvVar || { ...process.env };
4747
let env = base;

0 commit comments

Comments
 (0)