We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41dda5e commit 26903deCopy full SHA for 26903de
src/features/execution/envVariableManager.ts
@@ -37,11 +37,11 @@ export class PythonEnvVariableManager implements EnvVarManager {
37
}
38
39
async getEnvironmentVariables(
40
- uri: Uri,
+ uri: Uri | undefined,
41
overrides?: ({ [key: string]: string | undefined } | Uri)[],
42
baseEnvVar?: { [key: string]: string | undefined },
43
): Promise<{ [key: string]: string | undefined }> {
44
- const project = this.pm.get(uri);
+ const project = uri ? this.pm.get(uri) : undefined;
45
46
const base = baseEnvVar || { ...process.env };
47
let env = base;
0 commit comments