From e9e3a62224cd7c1ecf3cd71adc818efcd206c39c Mon Sep 17 00:00:00 2001 From: andrey zaytsev Date: Tue, 6 Mar 2018 17:11:44 +0300 Subject: [PATCH] fix testLightBulbIsHiddenWhenFixRangeIsCollapsed --- .../com/intellij/codeInsight/daemon/impl/IntentionsUIImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IntentionsUIImpl.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IntentionsUIImpl.java index 0c380ae1ef7d..ca1877f7e06c 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IntentionsUIImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IntentionsUIImpl.java @@ -25,6 +25,7 @@ public class IntentionsUIImpl implements IntentionsUI { Editor editor = cachedIntentions.getEditor(); if (!ApplicationManager.getApplication().isUnitTestMode() && !editor.getContentComponent().hasFocus()) return; if (HintManager.getInstance().hasShownHintsThatWillHideByOtherHint(false)) return; + if (!cachedIntentions.showBulb()) return; Project project = cachedIntentions.getProject(); // do not show intentions if caret is outside visible area LogicalPosition caretPos = editor.getCaretModel().getLogicalPosition();