mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user