Skip to content

Commit cf894bb

Browse files
authored
Revert "move clear envCollection to after await (#24921)" (#24988)
This reverts commit 6a60c92. fixes #24982
1 parent 6608f9a commit cf894bb

File tree

1 file changed

+1
-2
lines changed
  • src/client/terminals/envCollectionActivation

1 file changed

+1
-2
lines changed

Diff for: src/client/terminals/envCollectionActivation/service.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,9 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
221221
env.PS1 = await this.getPS1(shell, resource, env);
222222
const defaultPrependOptions = await this.getPrependOptions();
223223

224-
const deactivate = await this.terminalDeactivateService.getScriptLocation(shell, resource);
225224
// Clear any previously set env vars from collection
226225
envVarCollection.clear();
227-
226+
const deactivate = await this.terminalDeactivateService.getScriptLocation(shell, resource);
228227
Object.keys(env).forEach((key) => {
229228
if (shouldSkip(key)) {
230229
return;

0 commit comments

Comments
 (0)