How to dynamically enable/disable a lineMarkerProvider?
Answered
Like this:
<codeInsight.lineMarkerProvider language="JAVA" implementationClass="test.TestLineMarkerProvider"/>
I want to control a button to enable or disable the function:
collectNavigationMarkers
Can plugin do it?
Please sign in to leave a comment.
lineMarkerProvider is not something that can be enabled/disabled on demand. Once a file is scanned, and PsiElements are handled, so the lines are marked with LineMarkerInfo.
If you disable it during the runtime in some way, line markers will still be presented until the file will be parsed again.
Got it, Thank you.