# Fix redundant FS file watches due to LSP path watching \(\#27957\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b9f10c0adbdfee5639f9c7d0a87e7041bfd77e72

Requested commit: b9f10c0adbdfee5639f9c7d0a87e7041bfd77e72

Commit: b9f10c0adbdfee5639f9c7d0a87e7041bfd77e72

Tree: 5422c836e2b7edb6fe34c5adabae3fe48ffff3a2

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix redundant FS file watches due to LSP path watching (#27957)

Release Notes:

- Fixed a bug where Zed sometimes added multiple redundant FS watchers
when language servers requested to watch paths. This could cause saves
and git operations to fail if Zed exceeded the file descriptor limit.

---------

Co-authored-by: Piotr <piotr@zed.dev>
```

## Parents

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

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