-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add folding from end of region #77363
Conversation
I really like this idea, I hope it's implemented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff.
I want to talk to @alexandrudima if we find a possibility to do this with a single decoration
It would also be nice to be able to fold from the bottom at the explorer window, since directories like node_modules might get very big |
2022... |
If the node_modules folder opens because I clicked on Show Definition on a module, I close the large node_modules folder structure by clicking on any file or folder in there and press the left arrow key, so the tree structure shrinks. |
Could this be at least shipped as an extension? I understand the team might have its doubts about how to implement this in a consistent manner, but it will be useful immediately if it can be used as an extension. |
This is a feature I'm after now. Is there any development on this? Or is there any extension can do the same thing? |
This PR is of course old as the hills now and probably needs to be almost entirely rewritten (just an assumption). If there is a desire from maintainers to really include this I could crack the code back open and try to update it with the latest codebase. |
Hi,
Since it doesn't look like this is going to happen, would you consider checking whether this would be doable as an extension, and if yes, would you consider building it as one instead ? Thanks |
Closing the PR as there hasn't been any progress for multiple years. It's easier to start with a fresh PR. If someone is interested, I would suggest to check out: vscode/src/vs/editor/common/model.ts Line 236 in 2a5bd3e
This is used to render the folding indicator. I would suggest adding a |
😭 |
The end of an era 🤓 |
VSCode needs a fork that is community-centered. |
This is a simple to understand enhancement: allow folding code from the end of a region. A gif is worth a thousand words, so here's what it looks like in action:
High-level details on the implementation:
I hope you will consider pulling in this change, as I quite like being able to fold up a large region when I'm at its end to give a better idea of context around it. If you don't want to implement this or some form of it, I've at least enjoyed playing around in the code a bit. It was a nice night of fun.