mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
clear range highlighters from the editor just highlighted semi-leaking via the daemon->progress indicator->session user data->editor color scheme->editor->highlighters
This commit is contained in:
+4
@@ -156,4 +156,8 @@ public class HighlightingSessionImpl implements HighlightingSession {
|
||||
ApplicationManager.getApplication().assertIsDispatchThread();
|
||||
myEDTQueue.drain();
|
||||
}
|
||||
|
||||
static void clearProgressIndicator(@NotNull DaemonProgressIndicator indicator) {
|
||||
indicator.putUserData(HIGHLIGHTING_SESSION, null);
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -891,6 +891,7 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzerEx implements Pers
|
||||
public void stopIfRunning() {
|
||||
super.stopIfRunning();
|
||||
myProject.getMessageBus().syncPublisher(DAEMON_EVENT_TOPIC).daemonFinished();
|
||||
HighlightingSessionImpl.clearProgressIndicator(this);
|
||||
}
|
||||
};
|
||||
progress.setModalityProgress(null);
|
||||
|
||||
Reference in New Issue
Block a user