Skip to content

Commit 99a8799

Browse files
author
Kartik Raj
committed
sa
1 parent cb66272 commit 99a8799

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"--ui=tdd",
161161
"--recursive",
162162
"--colors",
163-
"--grep", "Terminal Environment Variable Collection",
163+
//"--grep", "Terminal Environment Variable Collection Pr",
164164
"--timeout=300000"
165165
],
166166
"outFiles": ["${workspaceFolder}/out/**/*.js", "!${workspaceFolder}/**/node_modules**/*"],

src/client/interpreter/activation/terminalEnvVarCollectionService.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,14 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
191191
applyAtShellIntegration: true,
192192
applyAtProcessCreation: true,
193193
});
194-
return;
194+
} else {
195+
traceVerbose(`Prepending environment variable ${key} in collection to ${value}`);
196+
envVarCollection.prepend(key, value, {
197+
applyAtShellIntegration: true,
198+
applyAtProcessCreation: true,
199+
});
195200
}
201+
return;
196202
}
197203
traceVerbose(`Setting environment variable ${key} in collection to ${value}`);
198204
envVarCollection.replace(key, value, {

0 commit comments

Comments
 (0)