mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-31 09:10:30 -04:00
Merge from vscode 2e5312cd61ff99c570299ecc122c52584265eda2
This commit is contained in:
committed by
Anthony Dresser
parent
3603f55d97
commit
7f1d8fc32f
@@ -65,7 +65,7 @@ export class MergedEnvironmentVariableCollection implements IMergedEnvironmentVa
|
||||
});
|
||||
}
|
||||
|
||||
diff(other: IMergedEnvironmentVariableCollection): IMergedEnvironmentVariableCollectionDiff {
|
||||
diff(other: IMergedEnvironmentVariableCollection): IMergedEnvironmentVariableCollectionDiff | undefined {
|
||||
const added: Map<string, IExtensionOwnedEnvironmentVariableMutator[]> = new Map();
|
||||
const changed: Map<string, IExtensionOwnedEnvironmentVariableMutator[]> = new Map();
|
||||
const removed: Map<string, IExtensionOwnedEnvironmentVariableMutator[]> = new Map();
|
||||
@@ -97,6 +97,10 @@ export class MergedEnvironmentVariableCollection implements IMergedEnvironmentVa
|
||||
}
|
||||
});
|
||||
|
||||
if (added.size === 0 && changed.size === 0 && removed.size === 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return { added, changed, removed };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user