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.

0

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

0

请先登录再写评论。