-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Hide empty folders after apply file exclusions (user settings) #763
Comments
Is there some way to hack around this until it's official? |
This feels like something that should be an opt-in setting. It could be confusing why some folders without children in the tree view appear while others do not. To start, I'd like to take a stab at making a general setting to not show empty folders overall. Edit: Unless I'm misunderstanding the code (can someone please verify this?), doing so would be a performance regression. The way it is now:
Updates to the model occur when the user's filters change, a file system event is seen, or a folder is expanded. Each folder doesn't know its children until an event occurs so that Code doesn't have to constantly monitor every file that could be in the explorer. Knowing whether a folder is "empty" would include needing to know its children immediately, which recursively leads to potentially needing to know the state of all children, always. Consider this directory structure:
In order to know whether |
Next milestone we plan to introduce compressed trees to the Explorer (single child nodes gets compressed into one). I believe this should make this experience better. |
This would be great |
Any updates on this ? VS-CODE Compact Folders is already out Another Unity 3D developer here ✋ |
Really Need this!! Also, Is there an 'Exclude everything except these' support in the |
This would be a really useful feature to have, to not have a lot of "empty" folders cluttering some projects... |
I'm a Unity 3D developer. Although I use file exclusions, it would be nice to hide folder that get empty after file exclusions are applied.
The text was updated successfully, but these errors were encountered: