File tree 2 files changed +4
-4
lines changed
src/client/interpreter/activation
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 46
46
"theme" : " dark"
47
47
},
48
48
"engines" : {
49
- "vscode" : " ^1.79.0-20230526 "
49
+ "vscode" : " ^1.81 "
50
50
},
51
51
"enableTelemetry" : false ,
52
52
"keywords" : [
Original file line number Diff line number Diff line change @@ -164,13 +164,13 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
164
164
}
165
165
}
166
166
167
- for ( const key in previousEnv ) {
168
- // If the previous env var is not in the current env, clear it from collection.
167
+ envVarCollection . forEach ( ( key ) => {
168
+ // If a previously set env var is not in the current env, clear it from collection.
169
169
if ( ! ( key in env ) ) {
170
170
traceVerbose ( `Clearing environment variable ${ key } from collection` ) ;
171
171
envVarCollection . delete ( key ) ;
172
172
}
173
- }
173
+ } ) ;
174
174
175
175
const displayPath = this . pathUtils . getDisplayName ( settings . pythonPath , workspaceFolder ?. uri . fsPath ) ;
176
176
const description = new MarkdownString ( `${ Interpreters . activateTerminalDescription } \`${ displayPath } \`` ) ;
You can’t perform that action at this time.
0 commit comments