Skip to content

Commit 362b12e

Browse files
authored
fix env var clearing (#886)
1 parent b6bb205 commit 362b12e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/features/terminal/terminalEnvVarInjector.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ export class TerminalEnvVarInjector implements Disposable {
110110
await this.injectEnvironmentVariablesForWorkspace(workspaceFolder);
111111
} else {
112112
// No provided workspace - update all workspaces
113-
this.envVarCollection.clear();
114113

115114
const workspaceFolders = workspace.workspaceFolders;
116115
if (!workspaceFolders || workspaceFolders.length === 0) {
@@ -140,7 +139,6 @@ export class TerminalEnvVarInjector implements Disposable {
140139

141140
// use scoped environment variable collection
142141
const envVarScope = this.getEnvironmentVariableCollectionScoped({ workspaceFolder });
143-
envVarScope.clear(); // Clear existing variables for this workspace
144142

145143
// Check if env file injection is enabled
146144
const config = getConfiguration('python', workspaceUri);

0 commit comments

Comments
 (0)