120
121
diff(other: IMergedEnvironmentVariableCollection, scope: EnvironmentVariableScope | undefined): IMergedEnvironmentVariableCollectionDiff | undefined {
123
>
const changed: Map<string, IExtensionOwnedEnvironmentVariableMutator[]> = new Map();
124
>
const removed: Map<string, IExtensionOwnedEnvironmentVariableMutator[]> = new Map();
125
>
126
>
// Find added
127
>
other.getVariableMap(scope).forEach((otherMutators, variable) => {
128
>
const currentMutators = this.getVariableMap(scope).get(variable);
129
>
const result = getMissingMutatorsFromArray(otherMutators, currentMutators);
130
>
if (result) {
131
added.set(variable, result);
132
}
134
>
135
>
// Find removed
136
>
this.getVariableMap(scope).forEach((currentMutators, variable) => {
137
const otherMutators = other.getVariableMap(scope).get(variable);
138
const result = getMissingMutatorsFromArray(currentMutators, otherMutators);