Replies: 1 comment 1 reply
-
Reproduced. Genuinely empty folders show the closed empty folder icon before they are opened. When populating each folder the contents are not enumerated, only whether it contains something. That's an intentional performance decision. I think b is the practical choice here - it's consistent and correct. Do you feel like a pull request @dxrcy ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given the file
foo/.bar
in the working directory, the folderfoo
will display with the normal, non-empty, folder icon.Then when it is opened (revealing no children, because dotfiles are hidden), the icon will switch to the empty (open) folder icon.
When closed again, the folder will show the empty (closed) folder icon.
Is this intentional? Or perhaps a limitation of the way directories are read?
I feel like it should either:
a) Show the empty folder icon before being opened
or
b) Show as non-empty, even if all children are hidden or otherwise filtered (perhaps with some indicator)
This relates to #2225 (especially considering option 'b').
Also possibly related is #2496.
Example
Directory structure:
Before opening:
After opening:
After closing:
Beta Was this translation helpful? Give feedback.
All reactions