microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.21k stars 29.29k forks source link

Feature to disable auto-expanding on sub-folders. #145510

Open rivangek opened 2 years ago

rivangek commented 2 years ago

Ability to disable the auto-expanding sub-folders, it is pretty annoying when you have a lot of files nested with folders; I have not found a property to disable it so I guess we programmers need to live with it.

https://user-images.githubusercontent.com/97276103/159167456-e240c43c-d777-437a-80b6-a0c1ff12ac5f.mp4

yume-chan commented 2 years ago

I can reproduce when "explorer.compactFolders": false and the folder only contains one subfolder.

Version: 1.66.0-insider
Commit: d572d6e9d1282b352227916cb8f95bb2b03ddcaa
Date: 2022-03-18T05:16:00.977Z
Electron: 17.1.2
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Darwin x64 21.2.0
JacksonKearl commented 2 years ago

Surprised this wasn't already a setting.

gjsjohnmurray commented 2 years ago

@JacksonKearl does this fix #130732 as well? Is it going to be merged?

lramos15 commented 2 years ago

@gjsjohnmurray Jackson has left the team and is no longer working on VS Code. I have inherited this item. I believe the two items are highlighting a similar problem yes. There is no current timeline for this work item.

kviktor1230 commented 1 year ago

Is there a solution to this issue/feature by now?

a0w89fwa0f commented 1 year ago

Is there a solution to this issue/feature by now?

Nope 😄

snayam commented 1 year ago

Same here.

"explorer.compactFolders": false

I have a media folder in my project.

The media folder contains a single subfolder "images" with many files (media/images).

Simply switching app windows and back to vscode automatically auto-expand the images folder (same with Refresh Explorer command).

wesley-maney commented 11 months ago

This issue seems to be focused on single parent folders, but I'd like this feature also for folders that have multiple parents.

I often use this feature in IDEs like those from JetBrains to quickly clean up my Explorer window when I had to make changes in several different folders for a feature or when debugging (as in: Close a parent folder so when I re-open it, I only see closed subfolders again).

It's a tedious job to have to close every sub folder and work your way up - or keep it like it is and lose a sense of place / create chaos. This "chaos" seems to worsen with mono repos (where you often don't want to collapse everything with the nuclear button on the top right of Explorer)

Limezero commented 6 months ago

I have spent the last several hours trying to find a solution to this (and slowly being driven mad in the process).

Someone clearly coded this feature intentionally because it is an exception to regular behavior, how can it possibly be this difficult to add a setting which disables it?

socker210 commented 3 weeks ago

I wish this request will merge as soon as possible 🙏