Register gutter icon in gutter settings dialog when LineMarkerProvider is not used
Answered
I am rendering gutter icons in a custom renderer which adds RangeHighlighters to the markup model when an editor is opened.
As I am not using the LineMarkerProvider here, the gutter icons do not appear in the Settings "Gutter Icons" dialog and therefore can not be deactivated there. Is it possible to register an gutter icon class there without using the LineMarkerProvider approach?
Background info: I am not using the LineMarkerProvider because I want to strictly display gutter icons based on the line numbers, not based on PSI element information. If there is a possibility to achieve this effect using the LineMarkerProvider approach, this might also be an option...
Thanks!
Please sign in to leave a comment.
Settings | Editor | General | Gutter Icons uses only
LineMarkerProviderextension points and can not be augmented to show additional entries.It is not possible to use
LineMarkerProviderto work based on line numbers.You could implement an additional settings page or intention on your gutter icons to allow users to configure it.