mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-59207 File-level inspection suppression for XML not working
This commit is contained in:
@@ -43,7 +43,7 @@ public class DefaultXmlSuppressionProvider extends XmlSuppressionProvider {
|
||||
}
|
||||
|
||||
public boolean isSuppressedFor(PsiElement element, String inspectionId) {
|
||||
final XmlTag tag = PsiTreeUtil.getContextOfType(element, XmlTag.class, false);
|
||||
final XmlTag tag = element instanceof XmlFile ? ((XmlFile)element).getRootTag() : PsiTreeUtil.getContextOfType(element, XmlTag.class, false);
|
||||
return tag != null && findSuppression(tag, inspectionId, element) != null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user