From e8a53f1ac0b7e8e9f02c2fd31dbe8db0968e959a Mon Sep 17 00:00:00 2001 From: anstarovoyt Date: Sun, 10 Jun 2018 12:26:22 +0300 Subject: [PATCH] typescript: avoid processing intentions in edt --- .../intellij/codeInsight/daemon/impl/ShowIntentionsPass.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java index 535205a22a87..5b28814dd3af 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java @@ -91,7 +91,7 @@ public class ShowIntentionsPass extends TextEditorHighlightingPass { } @NotNull - private static List getAvailableFixes(@NotNull final Editor editor, + public static List getAvailableFixes(@NotNull final Editor editor, @NotNull final PsiFile file, final int passId, int offset) { @@ -186,7 +186,7 @@ public class ShowIntentionsPass extends TextEditorHighlightingPass { public final List notificationActionsToShow = ContainerUtil.createLockFreeCopyOnWriteList(); private int myOffset; - void filterActions(@Nullable PsiFile psiFile) { + public void filterActions(@Nullable PsiFile psiFile) { IntentionActionFilter[] filters = IntentionActionFilter.EXTENSION_POINT_NAME.getExtensions(); filter(intentionsToShow, psiFile, filters); filter(errorFixesToShow, psiFile, filters);