-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
[folding] remember across editor groups #198819
Comments
I can reproduce this. Folding uses the editor view state to restore the folded ranges. |
Yes, view state is per editor group. We will copy the state when you move or copy an editor over but from then on its separate. |
Ok, so this as expected. |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
From the product designer's perspective it works as intended and this is a feature request. From the product user's perspective this does not work as expected and feels like a bug. I can understand the challenge in walking this fine line especially with a popular product. At any rate I appreciate the consideration and hope to see this bug resolved as there are no other viable folding extensions that have helped prevent repetitively folding the same code sections. |
There's a setting It's a tricky issue. We want to allow that same file is opened in multiple groups and that each has its own folding state. So we need to manage the states separately per group, e.g. in case you do a reload. Maybe we can do better with the initial folding when an editor is opened for the very first time in a group. |
With |
This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
Type: Bug
Using a .js file (or probably any file type), code folding is not remembered when opening this file in a different split window. I would expect the last-changed folding state to persist across any opening of that file in VSCode and not only in the same split window (or when creating a new split from that file).
I create and remove splits and move files between them often as I'm assuming most devs do. But because VSCode doesn't save & open with a per-file fold state (it seems tied to the file and split somehow), the folding is almost never saved and usually opens with nothing folded. It is too easy to lose the folding state with basic use of VSCode and the result is having to re-fold my files nearly every time I open them which gives the feeling that "remember folding" does not really work in any meaningfully predictable way. There are multiple ways to reproduce this issue.
Method A:
Method B:
VS Code version: Code 1.84.2 (1a5daa3, 2023-11-09T10:51:52.184Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Extensions (17)
A/B Experiments
The text was updated successfully, but these errors were encountered: