We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea1bca3 + 26903de commit 0d6d5aeCopy full SHA for 0d6d5ae
1 file changed
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