mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ensure read action
This commit is contained in:
@@ -25,6 +25,7 @@ import com.intellij.ide.util.PsiElementListCellRenderer;
|
||||
import com.intellij.navigation.ItemPresentation;
|
||||
import com.intellij.navigation.NavigationItem;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.application.ReadAction;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.editor.ex.util.EditorUtil;
|
||||
@@ -225,7 +226,7 @@ public abstract class GotoTargetHandler implements CodeInsightActionHandler {
|
||||
}
|
||||
|
||||
private Comparable getComparingObject(PsiElement o1) {
|
||||
return getRenderer(o1, targetsWithRenderers, gotoData).getComparingObject(o1);
|
||||
return ReadAction.compute(() -> getRenderer(o1, targetsWithRenderers, gotoData).getComparingObject(o1));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user