G-Rath / G-Rath/fold-call-blocks-plugin
Folding not triggering when carets in indentation of test block
- Dominant language
- Java
- Stars
- 8
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Currently folding only happens when the caret is within the block that will be folded (i.e `describe(''`, `it(''` 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:

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.