Skip to content

Commit 35bdb61

Browse files
committed
Add mutator options to some tests
1 parent 2fe1a30 commit 35bdb61

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/vs/workbench/contrib/terminal/test/common/environmentVariableCollection.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ suite('EnvironmentVariable - MergedEnvironmentVariableCollection', () => {
3131
}],
3232
['ext4', {
3333
map: deserializeEnvironmentVariableCollection([
34-
['A-key', { value: 'a4', type: EnvironmentVariableMutatorType.Append, variable: 'A' }]
34+
['A-key', { value: 'a4', type: EnvironmentVariableMutatorType.Append, variable: 'A', options: { applyAtProcessCreation: true, applyAtShellIntegration: true } }]
3535
])
3636
}]
3737
]));
3838
deepStrictEqual([...merged.getVariableMap(undefined).entries()], [
3939
['A', [
40-
{ extensionIdentifier: 'ext4', type: EnvironmentVariableMutatorType.Append, value: 'a4', variable: 'A', options: undefined },
40+
{ extensionIdentifier: 'ext4', type: EnvironmentVariableMutatorType.Append, value: 'a4', variable: 'A', options: { applyAtProcessCreation: true, applyAtShellIntegration: true } },
4141
{ extensionIdentifier: 'ext3', type: EnvironmentVariableMutatorType.Prepend, value: 'a3', variable: 'A', options: undefined },
4242
{ extensionIdentifier: 'ext2', type: EnvironmentVariableMutatorType.Append, value: 'a2', variable: 'A', options: undefined },
4343
{ extensionIdentifier: 'ext1', type: EnvironmentVariableMutatorType.Prepend, value: 'a1', variable: 'A', options: undefined }

src/vs/workbench/contrib/terminal/test/common/environmentVariableService.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ suite('EnvironmentVariable - EnvironmentVariableService', () => {
5151
const collection = new Map<string, IEnvironmentVariableMutator>();
5252
collection.set('A-key', { value: 'a', type: EnvironmentVariableMutatorType.Replace, variable: 'A' });
5353
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 } });
5555
environmentVariableService.set('ext1', { map: collection, persistent: true });
5656
deepStrictEqual([...environmentVariableService.mergedCollection.getVariableMap(undefined).entries()], [
5757
['A', [{ extensionIdentifier: 'ext1', type: EnvironmentVariableMutatorType.Replace, value: 'a', variable: 'A', options: undefined }]],
5858
['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 } }]]
6060
]);
6161

6262
// Persist with old service, create a new service with the same storage service to verify restore
@@ -65,7 +65,7 @@ suite('EnvironmentVariable - EnvironmentVariableService', () => {
6565
deepStrictEqual([...service2.mergedCollection.getVariableMap(undefined).entries()], [
6666
['A', [{ extensionIdentifier: 'ext1', type: EnvironmentVariableMutatorType.Replace, value: 'a', variable: 'A', options: undefined }]],
6767
['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 } }]]
6969
]);
7070
});
7171

0 commit comments

Comments
 (0)