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?

0
2 comments

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. 

0

Got it, Thank you.

0

Please sign in to leave a comment.