-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Currently folding only happens when the caret is within the block that will be folded (i.e describe('<message>', it('<message>' and so on).
This means that if you have your caret on the intent of a block, folding won't be triggered.
See this gif for an example:
In particular, note where the caret is when the //#region tag folds, vs when folding takes place for the describe block.
Ideally we'd like to match the behaviour of other foldables as much as possible.
I suspect this behaviour actually might be a result of some "fold-up" logic, where IntelliJ looks for the next/closest element to fold when requested to fold, which for some reason our folds don't meet.
This folding happens with other foldables as well, such as class methods:
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed

