Fixed "SpellCheckingEditorCustomization" not to block other inspections

Fixed custom "InspectionProfileWrapper" provided by
"SpellCheckingEditorCustomization" not to block other inspections
besides "SpellCheckingInspection"
This commit is contained in:
Konstantin Kolosovsky
2017-04-25 16:19:54 +03:00
parent c4d6d56b41
commit f693852f65
@@ -159,7 +159,7 @@ public class SpellCheckingEditorCustomization extends SimpleEditorCustomization
@Override
public boolean isToolEnabled(HighlightDisplayKey key, PsiElement element) {
return myUseSpellCheck && SPELL_CHECK_TOOLS.containsKey(key.toString());
return SPELL_CHECK_TOOLS.containsKey(key.toString()) ? myUseSpellCheck : super.isToolEnabled(key, element);
}
public void setUseSpellCheck(boolean useSpellCheck) {