# file_finder: Debounce file finder refreshes on worktree updates \(\#60451\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2fd6e237787fd808d3b934b7ddfc428daac79ea8

Requested commit: 2fd6e237787fd808d3b934b7ddfc428daac79ea8

Commit: 2fd6e237787fd808d3b934b7ddfc428daac79ea8

Tree: d40cad5ab1545124aad413f0c7b97f7925de6569

Author: Bing Wang

Committer: GitHub

## Message

```
file_finder: Debounce file finder refreshes on worktree updates (#60451)

# Objective

Delay picker refreshes for entry updates so bursty filesystem events
trigger only one search refresh, while still refreshing immediately when
worktrees are added or removed.

Update tests to advance both the watch latency and refresh debounce, and
add coverage for coalesced worktree updates.



## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable



Release Notes:

- N/A

---------

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
```

## Parents

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

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