# Optimize LSP watched file reporting in 2 simple ways · gitcafe/zed

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

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

Visibility: public

Requested revision: 4bda5c4d696b8d6abeb2e8ccd85e3bf38e0b74d5

Requested commit: 4bda5c4d696b8d6abeb2e8ccd85e3bf38e0b74d5

Commit: 4bda5c4d696b8d6abeb2e8ccd85e3bf38e0b74d5

Tree: f7ff4a91508e690bd074c608011824b7cc35f87f

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Optimize LSP watched file reporting in 2 simple ways

* Convert globs to relative paths in advance. This avoids needing to convert
  every changed path to an absolute path before performing glob matching.
* Avoid duplicate reporting for language servers with multiple worktrees.

```

## Parents

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

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