Line marker for folded code block

Hi,

I was wondering if it is possible to add a line marker for a code block that has been folded.
I've added line markers from my custom line marker provider, but these disappear as soon as the specific code block is folded. I can see this makes sense, but I would like to be able to show a line marker when the code is folded by my own custom folding builder.
I don't think this can be done by matching on the PSI, as the PSI doesn't change when code is folded. Is there another way to do this?

thanks,
Guno

0
4 comments

The logic of hiding line markers in a folded block is part of the platform code; plugin developers have no control over it. It might be possible to extend the API to allow that; you're welcome to file a YouTrack feature request.

0

Was a YouTrack feature request made for this in the end?

0

Not by me, if I remember correctly.

0

Please sign in to leave a comment.