From 2546a354cc3aed067c0b6cf8ae33d797750438a2 Mon Sep 17 00:00:00 2001 From: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com> Date: Fri, 7 Mar 2025 14:15:56 -0800 Subject: [PATCH] clear env var collection before adding new items --- src/extension/noConfigDebugInit.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/extension/noConfigDebugInit.ts b/src/extension/noConfigDebugInit.ts index 4962abe5..49bc506a 100644 --- a/src/extension/noConfigDebugInit.ts +++ b/src/extension/noConfigDebugInit.ts @@ -66,6 +66,8 @@ export async function registerNoConfigDebug( fs.unlinkSync(tempFilePath); } } + // clear the env var collection to remove any existing env vars + collection.clear(); // Add env var for PYDEVD_DISABLE_FILE_VALIDATION to disable extra output in terminal when starting the debug session. collection.replace('PYDEVD_DISABLE_FILE_VALIDATION', '1');