IDEA-145355 Fixed dirty scope changes accumulation while "ChangeListManager" is frozen for update requests utilizing "dirty scope manager filler" (Consumer<VcsDirtyScopeManager>) instead of direct dirty scope modifications

This commit is contained in:
Konstantin Kolosovsky
2015-11-22 17:53:08 +03:00
parent 86eb25d344
commit d3fc7949db
@@ -188,15 +188,11 @@ public class UpdateRequestsQueue {
LOG.debug("invokeAfterUpdate for project: " + myProject.getName());
final CallbackData data = CallbackData.create(afterUpdate, title, state, mode, myProject);
VcsDirtyScopeManagerProxy managerProxy = null;
if (dirtyScopeManagerFiller != null) {
managerProxy = new VcsDirtyScopeManagerProxy();
dirtyScopeManagerFiller.consume(managerProxy);
}
VcsDirtyScopeManagerProxy managerProxy = new VcsDirtyScopeManagerProxy();
// can ask stopped without a lock
if (! myStopped) {
if (managerProxy != null) {
dirtyScopeManagerFiller.consume(managerProxy);
if (!myProject.isDisposed()) {
managerProxy.callRealManager(VcsDirtyScopeManager.getInstance(myProject));
}
}