# Respect server capabilities on queries \(\#33538\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 01dfb6fa825ad9558c9c337bbe6ddb61e9128eda

Requested commit: 01dfb6fa825ad9558c9c337bbe6ddb61e9128eda

Commit: 01dfb6fa825ad9558c9c337bbe6ddb61e9128eda

Tree: 0c33031559f1f10dccfda8cd0398523c48fb8799

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Respect server capabilities on queries (#33538)

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

Turns out a bunch of Zed requests were not checking their capabilities
correctly, due to odd copy-paste and due to default that assumed that
the capabilities are met.

Adjust the code, which includes the document colors, add the test on the
colors case.

Release Notes:

- Fixed excessive document colors requests for unrelated files
```

## Parents

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

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