From 531943f06fa28cfe0b323e445854d3a249e87ebf Mon Sep 17 00:00:00 2001 From: Anthony Kim Date: Fri, 11 Jul 2025 10:42:31 -0700 Subject: [PATCH] test env collection with escape char --- src/client/terminals/envCollectionActivation/service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/terminals/envCollectionActivation/service.ts b/src/client/terminals/envCollectionActivation/service.ts index bd2ce1c6f717..14f361acdab4 100644 --- a/src/client/terminals/envCollectionActivation/service.ts +++ b/src/client/terminals/envCollectionActivation/service.ts @@ -226,6 +226,9 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ // Clear any previously set env vars from collection envVarCollection.clear(); const deactivate = await this.terminalDeactivateService.getScriptLocation(shell, resource); + + envVarCollection.replace('GOROOT', 'C:\\Users\\Administrator\\tools\\go1.23.9'); + Object.keys(env).forEach((key) => { if (shouldSkip(key)) { return;