How do you trigger visitFile() of a LocalInspectionTool programatically ?


I want to run visitFile on the currently open document when the file is saved or when I manually run an action from the Menu. As of now LocalInspectionTool runs buildVisitor and visitFile automatically on an edit in the document. I want to change this behaviour.

1 comment
Comment actions Permalink

You can force re-highlighting via com.intellij.codeInsight.daemon.DaemonCodeAnalyzer#restart(com.intellij.psi.PsiFile)


Please sign in to leave a comment.