Skip to content

Commit 79d321f

Browse files
authored
clear env var collection before adding new items (#659)
1 parent cba78e3 commit 79d321f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/extension/noConfigDebugInit.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ export async function registerNoConfigDebug(
6666
fs.unlinkSync(tempFilePath);
6767
}
6868
}
69+
// clear the env var collection to remove any existing env vars
70+
collection.clear();
6971

7072
// Add env var for PYDEVD_DISABLE_FILE_VALIDATION to disable extra output in terminal when starting the debug session.
7173
collection.replace('PYDEVD_DISABLE_FILE_VALIDATION', '1');

0 commit comments

Comments
 (0)