# fs: Don't treat watcher errors as reason to do rescans \(\#56165\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f87f0c0e1dc0c07e086989dcffc6984bc5ef71b0

Requested commit: f87f0c0e1dc0c07e086989dcffc6984bc5ef71b0

Commit: f87f0c0e1dc0c07e086989dcffc6984bc5ef71b0

Tree: 3e0b28abaa55e3ec2c1ac290f6e79d63f9140e92

Author: Ben Kunkle

Committer: GitHub

## Message

```
fs: Don't treat watcher errors as reason to do rescans (#56165)

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 is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes https://github.com/zed-industries/zed/issues/56064

This behavior regressed in
https://github.com/zed-industries/zed/pull/54481

Release Notes:

- Fixed an issue where broken symlinks, permission errors, or other fs
errors in watched directories could cause excessive CPU usage
```

## Parents

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

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