# Respect language server's capabilities when calling \`GetReferences\` \(\#10285\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 56c0345cf30737d4d6db8adad9373c93fce338a0

Requested commit: 56c0345cf30737d4d6db8adad9373c93fce338a0

Commit: 56c0345cf30737d4d6db8adad9373c93fce338a0

Tree: 89a79f4e240121bc9d972a59ae1d5d9427ba4b82

Author: Marshall Bowers

Committer: GitHub

## Message

```
Respect language server's capabilities when calling `GetReferences` (#10285)

This PR makes Zed respect the language server's capabilities when
calling the `GetReferences` command (used in "Find All References",
etc.).

This fixes a crash that could occur when using Zed with Gleam v1.0.

Release Notes:

- Made "Find All References" respect the language server's capabilities.
This fixes some instances where certain language servers would stop
working after receiving a "Find All References" request.

---------

Co-authored-by: Max <max@zed.dev>
```

## Parents

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

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