mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user