You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Creating or deleting file does not update folder's "collapsed" status. #702
Enable the "Collapse directories" setting in the tree-view package.
Create a nested directory---for instance, foo/bar.
Create a new file under foo---for instance, baz.md.
Reload the window.
Delete baz.md.
Expected Behavior
The folders should "expand" from their collapsed state when a file is created, making foo/baz.md visible in the tree. Deleting foo/baz.md should collapse the folders again, now that foo has no children.
Actual Behavior
When creating a single child, it remains hidden and its parent remains collapsed until the window is reloaded. When deleting a single child, the parent remains expanded until the window is reloaded.
I was going to report this... I guess I don't have to. I can verify that this is an issue as of tree-view#0.198.1 Same steps to reproduce as above with the addition of renaming a file into another sub directory also does not trigger a refresh.
I'll check it and prepare a PR when I have some time :)
Even if it's solved by #1008 it may be worthy to have a test covering this scenario.
Happy new year!
This is fixed in #1012. There are some alternative repro steps where it still occurs, but I'll file a new issue for those since the primary use case (creating and deleting files/directories through the tree-view itself) is fixed.
Activity
dingus9 commentedon Feb 23, 2016
I was going to report this... I guess I don't have to. I can verify that this is an issue as of tree-view#0.198.1 Same steps to reproduce as above with the addition of renaming a file into another sub directory also does not trigger a refresh.
miguelcg commentedon Dec 31, 2016
This might be fixed with #1008
winstliu commentedon Dec 31, 2016
I believe that only covers the deletion case, not the creation case.
miguelcg commentedon Dec 31, 2016
I'll check it and prepare a PR when I have some time :)
Even if it's solved by #1008 it may be worthy to have a test covering this scenario.
Happy new year!
🐛 Solve bug mentioned in issue atom#702
miguelcg commentedon Jan 2, 2017
@50Wliu PR ready to review! #1012
lee-dohm commentedon Jan 4, 2017
This is fixed in #1012. There are some alternative repro steps where it still occurs, but I'll file a new issue for those since the primary use case (creating and deleting files/directories through the tree-view itself) is fixed.