mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
reverting back dumb service message propagation. It seems like PsiModificationTracker do the trick (propagates to the parent).
This commit is contained in:
@@ -44,7 +44,7 @@ public abstract class DumbService {
|
||||
/**
|
||||
* @see com.intellij.openapi.project.Project#getMessageBus()
|
||||
*/
|
||||
public static final Topic<DumbModeListener> DUMB_MODE = new Topic<DumbModeListener>("dumb mode", DumbModeListener.class, Topic.BroadcastDirection.TO_PARENT);
|
||||
public static final Topic<DumbModeListener> DUMB_MODE = new Topic<DumbModeListener>("dumb mode", DumbModeListener.class);
|
||||
|
||||
/**
|
||||
* @return whether IntelliJ IDEA is in dumb mode, which means that right now indices are updated in background.
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
package com.intellij.ui;
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.project.DumbService;
|
||||
import com.intellij.psi.util.PsiModificationTracker;
|
||||
import com.intellij.util.Function;
|
||||
import com.intellij.util.messages.MessageBus;
|
||||
@@ -43,17 +42,6 @@ public class IconDeferrerImpl extends IconDeferrer {
|
||||
clear();
|
||||
}
|
||||
});
|
||||
|
||||
connection.subscribe(DumbService.DUMB_MODE, new DumbService.DumbModeListener() {
|
||||
@Override
|
||||
public void enteredDumbMode() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void exitDumbMode() {
|
||||
clear();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void clear() {
|
||||
|
||||
Reference in New Issue
Block a user