@@ -51,12 +51,12 @@ suite('EnvironmentVariable - EnvironmentVariableService', () => {
51
51
const collection = new Map < string , IEnvironmentVariableMutator > ( ) ;
52
52
collection . set ( 'A-key' , { value : 'a' , type : EnvironmentVariableMutatorType . Replace , variable : 'A' } ) ;
53
53
collection . set ( 'B-key' , { value : 'b' , type : EnvironmentVariableMutatorType . Append , variable : 'B' } ) ;
54
- collection . set ( 'C-key' , { value : 'c' , type : EnvironmentVariableMutatorType . Prepend , variable : 'C' } ) ;
54
+ collection . set ( 'C-key' , { value : 'c' , type : EnvironmentVariableMutatorType . Prepend , variable : 'C' , options : { applyAtProcessCreation : true , applyAtShellIntegration : true } } ) ;
55
55
environmentVariableService . set ( 'ext1' , { map : collection , persistent : true } ) ;
56
56
deepStrictEqual ( [ ...environmentVariableService . mergedCollection . getVariableMap ( undefined ) . entries ( ) ] , [
57
57
[ 'A' , [ { extensionIdentifier : 'ext1' , type : EnvironmentVariableMutatorType . Replace , value : 'a' , variable : 'A' , options : undefined } ] ] ,
58
58
[ 'B' , [ { extensionIdentifier : 'ext1' , type : EnvironmentVariableMutatorType . Append , value : 'b' , variable : 'B' , options : undefined } ] ] ,
59
- [ 'C' , [ { extensionIdentifier : 'ext1' , type : EnvironmentVariableMutatorType . Prepend , value : 'c' , variable : 'C' , options : undefined } ] ]
59
+ [ 'C' , [ { extensionIdentifier : 'ext1' , type : EnvironmentVariableMutatorType . Prepend , value : 'c' , variable : 'C' , options : { applyAtProcessCreation : true , applyAtShellIntegration : true } } ] ]
60
60
] ) ;
61
61
62
62
// Persist with old service, create a new service with the same storage service to verify restore
@@ -65,7 +65,7 @@ suite('EnvironmentVariable - EnvironmentVariableService', () => {
65
65
deepStrictEqual ( [ ...service2 . mergedCollection . getVariableMap ( undefined ) . entries ( ) ] , [
66
66
[ 'A' , [ { extensionIdentifier : 'ext1' , type : EnvironmentVariableMutatorType . Replace , value : 'a' , variable : 'A' , options : undefined } ] ] ,
67
67
[ 'B' , [ { extensionIdentifier : 'ext1' , type : EnvironmentVariableMutatorType . Append , value : 'b' , variable : 'B' , options : undefined } ] ] ,
68
- [ 'C' , [ { extensionIdentifier : 'ext1' , type : EnvironmentVariableMutatorType . Prepend , value : 'c' , variable : 'C' , options : undefined } ] ]
68
+ [ 'C' , [ { extensionIdentifier : 'ext1' , type : EnvironmentVariableMutatorType . Prepend , value : 'c' , variable : 'C' , options : { applyAtProcessCreation : true , applyAtShellIntegration : true } } ] ]
69
69
] ) ;
70
70
} ) ;
71
71
0 commit comments