Respect language server's capabilities when calling `GetReferences` (cherry-pick #10285) (#10291)
Marshall Bowers
and
Max
created
Cherry-pick 56c0345cf30737d4d6db8adad9373c93fce338a0 into `v0.130.x`.
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>