# fs: Retry watch registrations skipped during the native watch-limit cooldown \(\#60662\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e2d41c477c8265d067e5be703ab4904feaa87859

Requested commit: e2d41c477c8265d067e5be703ab4904feaa87859

Commit: e2d41c477c8265d067e5be703ab4904feaa87859

Tree: b3d073e9f3a6ca0936a2f6d186d5ed512392023d

Author: Lukas Wirth

Committer: GitHub

## Message

```
fs: Retry watch registrations skipped during the native watch-limit cooldown (#60662)

GlobalWatcher::add returns Ok(None) while the native watch-limit
cooldown is active, and FsWatcher::add_existing_path treated that as
success: the path was never watched, with no retry and no error. A
long-lived watch (like a repository's git directory) that happened to
register during a cooldown window silently never received events.

Route the skipped registration through the existing pending-path
machinery, which already polls until registration succeeds and emits a
rescan event for the path so that changes missed in the interim are
picked up.

---

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

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

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