Skip to content

Commit ec2322e

Browse files
authored
clear env var collection before adding new items (#659) (#663)
1 parent e1c59a1 commit ec2322e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/extension/noConfigDebugInit.ts

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ export async function registerNoConfigDebug(
6565
fs.unlinkSync(tempFilePath);
6666
}
6767
}
68+
// clear the env var collection to remove any existing env vars
69+
collection.clear();
6870

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

0 commit comments

Comments
 (0)