@@ -37,10 +37,10 @@ suite('EnvironmentVariable - MergedEnvironmentVariableCollection', () => {
37
37
] ) ) ;
38
38
deepStrictEqual ( [ ...merged . getVariableMap ( undefined ) . entries ( ) ] , [
39
39
[ 'A' , [
40
- { extensionIdentifier : 'ext4' , type : EnvironmentVariableMutatorType . Append , value : 'a4' , variable : 'A' } ,
41
- { extensionIdentifier : 'ext3' , type : EnvironmentVariableMutatorType . Prepend , value : 'a3' , variable : 'A' } ,
42
- { extensionIdentifier : 'ext2' , type : EnvironmentVariableMutatorType . Append , value : 'a2' , variable : 'A' } ,
43
- { extensionIdentifier : 'ext1' , type : EnvironmentVariableMutatorType . Prepend , value : 'a1' , variable : 'A' }
40
+ { extensionIdentifier : 'ext4' , type : EnvironmentVariableMutatorType . Append , value : 'a4' , variable : 'A' , options : undefined } ,
41
+ { extensionIdentifier : 'ext3' , type : EnvironmentVariableMutatorType . Prepend , value : 'a3' , variable : 'A' , options : undefined } ,
42
+ { extensionIdentifier : 'ext2' , type : EnvironmentVariableMutatorType . Append , value : 'a2' , variable : 'A' , options : undefined } ,
43
+ { extensionIdentifier : 'ext1' , type : EnvironmentVariableMutatorType . Prepend , value : 'a1' , variable : 'A' , options : undefined }
44
44
] ]
45
45
] ) ;
46
46
} ) ;
@@ -70,9 +70,9 @@ suite('EnvironmentVariable - MergedEnvironmentVariableCollection', () => {
70
70
] ) ) ;
71
71
deepStrictEqual ( [ ...merged . getVariableMap ( undefined ) . entries ( ) ] , [
72
72
[ 'A' , [
73
- { extensionIdentifier : 'ext3' , type : EnvironmentVariableMutatorType . Replace , value : 'a3' , variable : 'A' } ,
74
- { extensionIdentifier : 'ext2' , type : EnvironmentVariableMutatorType . Append , value : 'a2' , variable : 'A' } ,
75
- { extensionIdentifier : 'ext1' , type : EnvironmentVariableMutatorType . Prepend , value : 'a1' , variable : 'A' }
73
+ { extensionIdentifier : 'ext3' , type : EnvironmentVariableMutatorType . Replace , value : 'a3' , variable : 'A' , options : undefined } ,
74
+ { extensionIdentifier : 'ext2' , type : EnvironmentVariableMutatorType . Append , value : 'a2' , variable : 'A' , options : undefined } ,
75
+ { extensionIdentifier : 'ext1' , type : EnvironmentVariableMutatorType . Prepend , value : 'a1' , variable : 'A' , options : undefined }
76
76
] ]
77
77
] , 'The ext4 entry should be removed as it comes after a Replace' ) ;
78
78
} ) ;
@@ -104,9 +104,9 @@ suite('EnvironmentVariable - MergedEnvironmentVariableCollection', () => {
104
104
] ) ) ;
105
105
deepStrictEqual ( [ ...merged . getVariableMap ( scope2 ) . entries ( ) ] , [
106
106
[ 'A' , [
107
- { extensionIdentifier : 'ext4' , type : EnvironmentVariableMutatorType . Append , value : 'a4' , variable : 'A' } ,
108
- { extensionIdentifier : 'ext3' , type : EnvironmentVariableMutatorType . Prepend , value : 'a3' , scope : scope2 , variable : 'A' } ,
109
- { extensionIdentifier : 'ext2' , type : EnvironmentVariableMutatorType . Append , value : 'a2' , variable : 'A' } ,
107
+ { extensionIdentifier : 'ext4' , type : EnvironmentVariableMutatorType . Append , value : 'a4' , variable : 'A' , options : undefined } ,
108
+ { extensionIdentifier : 'ext3' , type : EnvironmentVariableMutatorType . Prepend , value : 'a3' , scope : scope2 , variable : 'A' , options : undefined } ,
109
+ { extensionIdentifier : 'ext2' , type : EnvironmentVariableMutatorType . Append , value : 'a2' , variable : 'A' , options : undefined } ,
110
110
] ]
111
111
] ) ;
112
112
} ) ;
@@ -138,8 +138,8 @@ suite('EnvironmentVariable - MergedEnvironmentVariableCollection', () => {
138
138
] ) ) ;
139
139
deepStrictEqual ( [ ...merged . getVariableMap ( undefined ) . entries ( ) ] , [
140
140
[ 'A' , [
141
- { extensionIdentifier : 'ext4' , type : EnvironmentVariableMutatorType . Append , value : 'a4' , variable : 'A' } ,
142
- { extensionIdentifier : 'ext2' , type : EnvironmentVariableMutatorType . Append , value : 'a2' , variable : 'A' } ,
141
+ { extensionIdentifier : 'ext4' , type : EnvironmentVariableMutatorType . Append , value : 'a4' , variable : 'A' , options : undefined } ,
142
+ { extensionIdentifier : 'ext2' , type : EnvironmentVariableMutatorType . Append , value : 'a2' , variable : 'A' , options : undefined } ,
143
143
] ]
144
144
] ) ;
145
145
} ) ;
@@ -322,7 +322,7 @@ suite('EnvironmentVariable - MergedEnvironmentVariableCollection', () => {
322
322
strictEqual ( diff . removed . size , 0 ) ;
323
323
const entries = [ ...diff . added . entries ( ) ] ;
324
324
deepStrictEqual ( entries , [
325
- [ 'A' , [ { extensionIdentifier : 'ext1' , value : 'a' , type : EnvironmentVariableMutatorType . Replace , variable : 'A' } ] ]
325
+ [ 'A' , [ { extensionIdentifier : 'ext1' , value : 'a' , type : EnvironmentVariableMutatorType . Replace , variable : 'A' , options : undefined } ] ]
326
326
] ) ;
327
327
} ) ;
328
328
@@ -347,7 +347,7 @@ suite('EnvironmentVariable - MergedEnvironmentVariableCollection', () => {
347
347
strictEqual ( diff . removed . size , 0 ) ;
348
348
const entries = [ ...diff . added . entries ( ) ] ;
349
349
deepStrictEqual ( entries , [
350
- [ 'B' , [ { extensionIdentifier : 'ext1' , value : 'b' , type : EnvironmentVariableMutatorType . Append , variable : 'B' } ] ]
350
+ [ 'B' , [ { extensionIdentifier : 'ext1' , value : 'b' , type : EnvironmentVariableMutatorType . Append , variable : 'B' , options : undefined } ] ]
351
351
] ) ;
352
352
} ) ;
353
353
@@ -376,7 +376,7 @@ suite('EnvironmentVariable - MergedEnvironmentVariableCollection', () => {
376
376
strictEqual ( diff . changed . size , 0 ) ;
377
377
strictEqual ( diff . removed . size , 0 ) ;
378
378
deepStrictEqual ( [ ...diff . added . entries ( ) ] , [
379
- [ 'A' , [ { extensionIdentifier : 'ext2' , value : 'a2' , type : EnvironmentVariableMutatorType . Append , variable : 'A' } ] ]
379
+ [ 'A' , [ { extensionIdentifier : 'ext2' , value : 'a2' , type : EnvironmentVariableMutatorType . Append , variable : 'A' , options : undefined } ] ]
380
380
] ) ;
381
381
382
382
const merged3 = new MergedEnvironmentVariableCollection ( new Map ( [
@@ -443,7 +443,7 @@ suite('EnvironmentVariable - MergedEnvironmentVariableCollection', () => {
443
443
strictEqual ( diff . changed . size , 0 ) ;
444
444
strictEqual ( diff . added . size , 0 ) ;
445
445
deepStrictEqual ( [ ...diff . removed . entries ( ) ] , [
446
- [ 'B' , [ { extensionIdentifier : 'ext1' , value : 'b' , type : EnvironmentVariableMutatorType . Replace , variable : 'B' } ] ]
446
+ [ 'B' , [ { extensionIdentifier : 'ext1' , value : 'b' , type : EnvironmentVariableMutatorType . Replace , variable : 'B' , options : undefined } ] ]
447
447
] ) ;
448
448
} ) ;
449
449
@@ -468,8 +468,8 @@ suite('EnvironmentVariable - MergedEnvironmentVariableCollection', () => {
468
468
strictEqual ( diff . added . size , 0 ) ;
469
469
strictEqual ( diff . removed . size , 0 ) ;
470
470
deepStrictEqual ( [ ...diff . changed . entries ( ) ] , [
471
- [ 'A' , [ { extensionIdentifier : 'ext1' , value : 'a2' , type : EnvironmentVariableMutatorType . Replace , variable : 'A' } ] ] ,
472
- [ 'B' , [ { extensionIdentifier : 'ext1' , value : 'b' , type : EnvironmentVariableMutatorType . Append , variable : 'B' } ] ]
471
+ [ 'A' , [ { extensionIdentifier : 'ext1' , value : 'a2' , type : EnvironmentVariableMutatorType . Replace , variable : 'A' , options : undefined } ] ] ,
472
+ [ 'B' , [ { extensionIdentifier : 'ext1' , value : 'b' , type : EnvironmentVariableMutatorType . Append , variable : 'B' , options : undefined } ] ]
473
473
] ) ;
474
474
} ) ;
475
475
@@ -492,13 +492,13 @@ suite('EnvironmentVariable - MergedEnvironmentVariableCollection', () => {
492
492
] ) ) ;
493
493
const diff = merged1 . diff ( merged2 , undefined ) ! ;
494
494
deepStrictEqual ( [ ...diff . added . entries ( ) ] , [
495
- [ 'C' , [ { extensionIdentifier : 'ext1' , value : 'c' , type : EnvironmentVariableMutatorType . Append , variable : 'C' } ] ] ,
495
+ [ 'C' , [ { extensionIdentifier : 'ext1' , value : 'c' , type : EnvironmentVariableMutatorType . Append , variable : 'C' , options : undefined } ] ] ,
496
496
] ) ;
497
497
deepStrictEqual ( [ ...diff . removed . entries ( ) ] , [
498
- [ 'B' , [ { extensionIdentifier : 'ext1' , value : 'b' , type : EnvironmentVariableMutatorType . Prepend , variable : 'B' } ] ]
498
+ [ 'B' , [ { extensionIdentifier : 'ext1' , value : 'b' , type : EnvironmentVariableMutatorType . Prepend , variable : 'B' , options : undefined } ] ]
499
499
] ) ;
500
500
deepStrictEqual ( [ ...diff . changed . entries ( ) ] , [
501
- [ 'A' , [ { extensionIdentifier : 'ext1' , value : 'a2' , type : EnvironmentVariableMutatorType . Replace , variable : 'A' } ] ]
501
+ [ 'A' , [ { extensionIdentifier : 'ext1' , value : 'a2' , type : EnvironmentVariableMutatorType . Replace , variable : 'A' , options : undefined } ] ]
502
502
] ) ;
503
503
} ) ;
504
504
@@ -524,10 +524,10 @@ suite('EnvironmentVariable - MergedEnvironmentVariableCollection', () => {
524
524
const diff = merged1 . diff ( merged2 , scope1 ) ! ;
525
525
strictEqual ( diff . added . size , 0 ) ;
526
526
deepStrictEqual ( [ ...diff . removed . entries ( ) ] , [
527
- [ 'B' , [ { extensionIdentifier : 'ext1' , value : 'b' , type : EnvironmentVariableMutatorType . Prepend , variable : 'B' } ] ]
527
+ [ 'B' , [ { extensionIdentifier : 'ext1' , value : 'b' , type : EnvironmentVariableMutatorType . Prepend , variable : 'B' , options : undefined } ] ]
528
528
] ) ;
529
529
deepStrictEqual ( [ ...diff . changed . entries ( ) ] , [
530
- [ 'A' , [ { extensionIdentifier : 'ext1' , value : 'a2' , type : EnvironmentVariableMutatorType . Replace , scope : scope1 , variable : 'A' } ] ]
530
+ [ 'A' , [ { extensionIdentifier : 'ext1' , value : 'a2' , type : EnvironmentVariableMutatorType . Replace , scope : scope1 , variable : 'A' , options : undefined } ] ]
531
531
] ) ;
532
532
} ) ;
533
533
} ) ;
0 commit comments