File tree 1 file changed +3
-3
lines changed
src/client/terminals/envCollectionActivation
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
188
188
189
189
// PS1 in some cases is a shell variable (not an env variable) so "env" might not contain it, calculate it in that case.
190
190
env . PS1 = await this . getPS1 ( shell , resource , env ) ;
191
- const prependOptions = await this . getPrependOptions ( shell ) ;
191
+ const prependOptions = await this . getPrependOptions ( ) ;
192
192
193
193
// Clear any previously set env vars from collection
194
194
envVarCollection . clear ( ) ;
@@ -345,8 +345,8 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
345
345
}
346
346
}
347
347
348
- private async getPrependOptions ( shell : string ) : Promise < EnvironmentVariableMutatorOptions > {
349
- const isActive = await this . shellIntegrationService . isWorking ( shell ) ;
348
+ private async getPrependOptions ( ) : Promise < EnvironmentVariableMutatorOptions > {
349
+ const isActive = await this . shellIntegrationService . isWorking ( this . applicationEnvironment . shell ) ;
350
350
// Ideally we would want to prepend exactly once, either at shell integration or process creation.
351
351
// TODO: Stop prepending altogether once https://github.com/microsoft/vscode/issues/145234 is available.
352
352
return isActive
You can’t perform that action at this time.
0 commit comments