# Fix Auto folded dirs performance issues \(\#8556\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8bca9cea26df5decdfd5b4221502942390945f20)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8bca9cea26df5decdfd5b4221502942390945f20

Requested commit: 8bca9cea26df5decdfd5b4221502942390945f20

Commit: 8bca9cea26df5decdfd5b4221502942390945f20

Tree: 7f597b835803e05184dda6cbc63cd4883d0d2544

Author: Yury Abykhodau

Committer: GitHub

## Message

```
Fix Auto folded dirs performance issues (#8556)

Fixed auto folded dirs which caused significant performance issues #8476
(#7674)

Moved from iterating over snapshot entries to use `child_entries`
function from `worktree.rs` by making it public

@maxbrunsfeld 

Release Notes:

- Fixed a bug where project panel settings changes would not be applied
immediately.
- Added a `project_panel.auto_fold_dirs` setting which collapses the
nesting in the project panel when there is a chain of folders containing
a single folder.
<img width="288" alt="Screenshot 2024-04-12 at 11 10 58 AM"
src="https://github.com/zed-industries/zed/assets/2280405/efd61e75-026c-464d-ba4d-90db5f68bad3">

---------

Co-authored-by: Mikayla <mikayla@zed.dev>
```

## Parents

- [28586060a13e37c734f4d20bf965af4414d80667](https://git.cafe/gitcafe/zed/commit/28586060a13e37c734f4d20bf965af4414d80667?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8bca9cea26df5decdfd5b4221502942390945f20?format=markdown)
