# Avoid redundant FS scans when LSPs changed watched files · gitcafe/zed

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

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

Visibility: public

Requested revision: ba80c5327858e57205b4637c5269a6c933d07040

Requested commit: ba80c5327858e57205b4637c5269a6c933d07040

Commit: ba80c5327858e57205b4637c5269a6c933d07040

Tree: 1de13b13df5bfbd66494612b30fefa26f21836b1

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Avoid redundant FS scans when LSPs changed watched files

* Don't scan directories if they were already loaded.
* Do less work when FS events occur inside unloaded directories.

```

## Parents

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

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