How to mark error in the project tree? Follow
Answered
Please sign in to leave a comment.
Implement this EP https://jb.gg/ipe?extensions=com.intellij.problemFileHighlightFilter, implementation should implement
implements Condition<VirtualFile>
hi yann, we find this extensions but when we try to use
our problem can not be maintained,By the way, how to mark problem in the problems?
Simply use regular "error highlighting" mechanism, e.g. Annotator or Inspection https://plugins.jetbrains.com/docs/intellij/syntax-highlighting-and-error-highlighting.html
I think the annotator can't achieve the effect we want. We don't know when the annotator will trigger
Try com.intellij.problems.WolfTheProblemSolver#reportProblemsFromExternalSource
But this method cannot mark the problem in problems panel. 0.0
Please share full code
Upload id: 2021_09_30_K3Zym1VGaX32msZg (file: demo.zip)
Sorry for delay. Please see https://plugins.jetbrains.com/docs/intellij/xml-dom-api.html#highlighting-annotations and following on how to highlight DOM files, namely extending custom com.intellij.util.xml.highlighting.BasicDomElementsInspection to highlight semantic errors.