@@ -75,7 +75,7 @@ suite('Terminal Environment Variable Collection Service', () => {
75
75
context = mock < IExtensionContext > ( ) ;
76
76
shell = mock < IApplicationShell > ( ) ;
77
77
shellIntegrationService = mock < IShellIntegrationService > ( ) ;
78
- when ( shellIntegrationService . isWorking ( anything ( ) ) ) . thenResolve ( true ) ;
78
+ when ( shellIntegrationService . isWorking ( ) ) . thenResolve ( true ) ;
79
79
globalCollection = mock < GlobalEnvironmentVariableCollection > ( ) ;
80
80
collection = mock < EnvironmentVariableCollection > ( ) ;
81
81
when ( context . environmentVariableCollection ) . thenReturn ( instance ( globalCollection ) ) ;
@@ -336,7 +336,7 @@ suite('Terminal Environment Variable Collection Service', () => {
336
336
verify ( collection . clear ( ) ) . once ( ) ;
337
337
verify ( collection . prepend ( 'PATH' , prependedPart , anything ( ) ) ) . once ( ) ;
338
338
verify ( collection . replace ( 'PATH' , anything ( ) , anything ( ) ) ) . never ( ) ;
339
- assert . deepEqual ( opts , { applyAtProcessCreation : false , applyAtShellIntegration : true } ) ;
339
+ assert . deepEqual ( opts , { applyAtProcessCreation : true , applyAtShellIntegration : true } ) ;
340
340
} ) ;
341
341
342
342
test ( 'Also prepend deactivate script location if available' , async ( ) => {
@@ -372,7 +372,7 @@ suite('Terminal Environment Variable Collection Service', () => {
372
372
const separator = getOSType ( ) === OSType . Windows ? ';' : ':' ;
373
373
verify ( collection . prepend ( 'PATH' , `scriptLocation${ separator } ${ prependedPart } ` , anything ( ) ) ) . once ( ) ;
374
374
verify ( collection . replace ( 'PATH' , anything ( ) , anything ( ) ) ) . never ( ) ;
375
- assert . deepEqual ( opts , { applyAtProcessCreation : false , applyAtShellIntegration : true } ) ;
375
+ assert . deepEqual ( opts , { applyAtProcessCreation : true , applyAtShellIntegration : true } ) ;
376
376
} ) ;
377
377
378
378
test ( 'Prepend full PATH with separator otherwise' , async ( ) => {
@@ -405,7 +405,7 @@ suite('Terminal Environment Variable Collection Service', () => {
405
405
verify ( collection . clear ( ) ) . once ( ) ;
406
406
verify ( collection . prepend ( 'PATH' , `${ finalPath } ${ separator } ` , anything ( ) ) ) . once ( ) ;
407
407
verify ( collection . replace ( 'PATH' , anything ( ) , anything ( ) ) ) . never ( ) ;
408
- assert . deepEqual ( opts , { applyAtProcessCreation : false , applyAtShellIntegration : true } ) ;
408
+ assert . deepEqual ( opts , { applyAtProcessCreation : true , applyAtShellIntegration : true } ) ;
409
409
} ) ;
410
410
411
411
test ( 'Prepend full PATH with separator otherwise' , async ( ) => {
@@ -441,7 +441,7 @@ suite('Terminal Environment Variable Collection Service', () => {
441
441
verify ( collection . clear ( ) ) . once ( ) ;
442
442
verify ( collection . prepend ( 'PATH' , `scriptLocation${ separator } ${ finalPath } ${ separator } ` , anything ( ) ) ) . once ( ) ;
443
443
verify ( collection . replace ( 'PATH' , anything ( ) , anything ( ) ) ) . never ( ) ;
444
- assert . deepEqual ( opts , { applyAtProcessCreation : false , applyAtShellIntegration : true } ) ;
444
+ assert . deepEqual ( opts , { applyAtProcessCreation : true , applyAtShellIntegration : true } ) ;
445
445
} ) ;
446
446
447
447
test ( 'Verify envs are not applied if env activation is disabled' , async ( ) => {
@@ -523,7 +523,7 @@ suite('Terminal Environment Variable Collection Service', () => {
523
523
524
524
test ( 'Correct track that prompt was set for PS1 if shell integration is disabled' , async ( ) => {
525
525
reset ( shellIntegrationService ) ;
526
- when ( shellIntegrationService . isWorking ( anything ( ) ) ) . thenResolve ( false ) ;
526
+ when ( shellIntegrationService . isWorking ( ) ) . thenResolve ( false ) ;
527
527
when ( platform . osType ) . thenReturn ( OSType . Linux ) ;
528
528
const envVars : NodeJS . ProcessEnv = { VIRTUAL_ENV : 'prefix/to/venv' , PS1 : '(.venv)' , ...process . env } ;
529
529
const ps1Shell = 'bash' ;
0 commit comments