mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
followup to IJPL-235455: do not ever call processQueue() in read action since it can freeze for some inexplicable reason
(cherry picked from commit b8dee67e69e760537c85afa09e03479d265deb0a) IJ-CR-218809 GitOrigin-RevId: 586833efb60370554d94869daa511587f85dd5a1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3cbb0e8f45
commit
a416f0879e
-5
@@ -319,10 +319,6 @@ public final class HighlightInfoUpdaterImpl extends HighlightInfoUpdater impleme
|
||||
return data;
|
||||
}
|
||||
|
||||
private static void invokeProcessQueueToTriggerEvictedListener(@NotNull Map<? extends PsiElement, ?> map) {
|
||||
((ReferenceQueueable)map).processQueue(); // to call evictionListener if needed
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized void removeInfosForInjectedFilesOtherThan(@NotNull PsiFile hostPsiFile,
|
||||
@NotNull TextRange restrictRange,
|
||||
@@ -615,7 +611,6 @@ public final class HighlightInfoUpdaterImpl extends HighlightInfoUpdater impleme
|
||||
for (Map.Entry<Object, ToolHighlights> toolEntry : map.entrySet()) {
|
||||
ToolHighlights toolHighlights = toolEntry.getValue();
|
||||
Object toolId = toolEntry.getKey();
|
||||
invokeProcessQueueToTriggerEvictedListener(toolHighlights.elementHighlights);
|
||||
if (!toolPredicate.matches(toolId)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user