Custom Language Plugin: Folding one range folds all ranges
Answered
I've implemented FoldingBuilder from the custom language plugin tutorial. I've used a different logic, but the data structures returned are the same.
The folding ranges displayed are correct, but when I (un)fold one of the ranges, all the ranges (un)fold.
Are you able to pinpoint what could be wrong here?
Please sign in to leave a comment.
Sorry, here is my code:
Do they have to be different groups? The tutorial used only one group, though.
Yes, I do have to use different FoldingGroups ...
from Javadoc
> * {@link com.intellij.openapi.editor.FoldRegion}s with same FoldingGroup instances expand and collapse together.