scm: don't send events if nothing has changed

This commit is contained in:
Joao
2017-09-06 13:02:31 +02:00
parent b37a12e6a4
commit 2855c1cac3
2 changed files with 16 additions and 6 deletions

View File

@@ -169,8 +169,8 @@ class MainThreadSCMProvider implements ISCMProvider {
this._onDidChange.fire();
}
$spliceGroupResourceStates(slices: SCMRawResourceSplices[]): void {
for (const [groupHandle, groupSlices] of slices) {
$spliceGroupResourceStates(splices: SCMRawResourceSplices[]): void {
for (const [groupHandle, groupSlices] of splices) {
const group = this._groupsByHandle[groupHandle];
if (!group) {