microsoft / vscode

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

Expand All Folders Button #221596

Open dangus21 opened 2 months ago

dangus21 commented 2 months ago

Hello VSCode team! At the present time there is no way to recursively expand all folders, the same way we can collapse them.

Request: A button next to the collapse that already exists that allows to expand the folders.

PR #221597

gjsjohnmurray commented 2 months ago

Related to https://github.com/microsoft/vscode/issues/66811 which now points to #66971

Recursively resolving the File Explorer tree has been debated before. See https://github.com/microsoft/vscode/issues/155570#issuecomment-1189513421 for one of the challenges it presents.

dangus21 commented 2 months ago

i don't see much about details on why we can't have this feature at this moment, the issue is 2019 and the comment seems to be relating to a bug that is not related to this feature

lramos15 commented 2 months ago

@dangus21 The comments there still do apply. Can you please give more information about the use case you're trying to solve with expand all? What would be the need of expanding a ton of files in a large repository

dangus21 commented 2 months ago

recently i was working on a directory with a bunch of folders that all had a subfolder and a config file, and another type of config file was generated into one of them. i missed what the file was since it was being randomized and i had to just about open 50 folders to find where said file was.. this was my use case, but i'm sure there are other people that could possibly benefit from this

ericchase commented 1 month ago

the issue mentioned is pretty easy to work around by adding a depth to the recursive expansion. it can even be 1; simply being able to expand folders 1 depth at a time would be a massive utility compared to... nothing. this would probably be an advanced feature, but i think there are tons of common use cases that shouldn't simply be neglected just because a folder might be too big.

a while back i spent a night setting up the project and then implementing the above (https://github.com/microsoft/vscode/issues/66971#issuecomment-2134261325). personally, i'd find it extremely hard to believe that there is anyone who has never ran into a situation in which this kind of feature would have been useful. but there doesn't seem to be much interest around it

vs-code-engineering[bot] commented 1 month ago

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!