# Fix relative glob patterns not working for language servers \(\#9179\) · gitcafe/zed

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

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

Visibility: public

Requested revision: fe70a2646ffeea3e182e21f6fd79118dbf394f38

Requested commit: fe70a2646ffeea3e182e21f6fd79118dbf394f38

Commit: fe70a2646ffeea3e182e21f6fd79118dbf394f38

Tree: 4285d11000bc78742a4b84236c895e5a3a981519

Author: Thorsten Ball

Committer: GitHub

## Message

```
Fix relative glob patterns not working for language servers (#9179)

If a language server would send us a glob pattern like `**/*.rb` or
`**/{package.json}` we'd end up ignoring it and never sending the
language server any notifications, because we try to `strip_prefix` the
projects absolute path from the pattern, BUT if that path is not in the
pattern, we'd return `None`.

This change fixes that.

Release Notes:

- Fixed language server glob patterns for file watching being ignored if
they were relative patterns.

Co-authored-by: Bennet <bennetbo@gmx.de>
Co-authored-by: Remco <djsmits12@gmail.com>
```

## Parents

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

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