jmfirth/vsc-space-block-jumper

Request: don't step into collapsed blocks

akbyrd opened this issue · 1 comments

Currently if I have my cursor above a collapsed function and I jump down it will jump to the first blank line inside the function and cause it to be expanded.

This behavior is inconsistent with the normal VS Code experience where moving the cursor with the arrow keys will not cause blocks to be expanded.

Also, this behavior is rarely desired in my case. I collapse blocks to get them out of the way. I'm not looking at them right now, so moving into them is almost certainly not what I'm looking to do. It's also impossible to predict because I can't see the the empty lines the cursor is going to jump to.

Here's my initial state
initial

The expected result
desired

And the actual result
actual

This is a sensible ask; I rarely use folding and never considered it. I will look into this as I have time. Thanks for the report!