-
-
Notifications
You must be signed in to change notification settings - Fork 619
filtered subfolder Events not torn down #2468
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
Comments
This is a one time resource leak. Watchers created for the |
@alex-courtis can you give me a few clues ? I would like to make a PR to fix this |
Thanks for looking into this one @GZLiew Resource leaks are serious business! It seems we are not destroying all the child nodes and their watchers.
reload is destroying the parent node correctly:
Possibility: reload recursively destroy all child nodes. |
Co-authored-by: Alexander Courtis <[email protected]>
Description
Event:destroy
not called for subfolders of an ignored folder.Neovim version
Operating system and version
Linux 6.5.7-arch1-1
nvim-tree version
4054fc4
Clean room replication
Steps to reproduce
Expected behavior
Toggle git ignored filter.
Expand
i
Toggle filter again
Watcher:destroy
andEvent:destroy
called for directories underi
Actual behavior
Only
Watcher:destroy
called fori/[123]
. Both are called fori
The text was updated successfully, but these errors were encountered: