How to dynamically enable/disable a lineMarkerProvider?

已回答

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

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

请先登录再写评论。