Skip to content

Commit 26903de

Browse files
authored
Allow undefined uri in api.getEnvironmentVariables (#943)
1 parent 41dda5e commit 26903de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)