# Stop waiting for part of LSP responses on remote Collab clients' part \(\#36557\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5dcb90858effc47c7f2768b03ddb2a81b443ec8e

Requested commit: 5dcb90858effc47c7f2768b03ddb2a81b443ec8e

Commit: 5dcb90858effc47c7f2768b03ddb2a81b443ec8e

Tree: e6d5bcb77b2a0fe004fa6e41381dfc97655c8dcb

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Stop waiting for part of LSP responses on remote Collab clients' part (#36557)

Instead of holding a connection for potentially long LSP queries (e.g.
rust-analyzer might take minutes to look up a definition), disconnect
right after sending the initial request and handle the follow-up
responses later.

As a bonus, this allows to cancel previously sent request on the local
Collab clients' side due to this, as instead of holding and serving the
old connection, local clients now can stop previous requests, if needed.

Current PR does not convert all LSP requests to the new paradigm, but
the problematic ones, deprecating `MultiLspQuery` and moving all its
requests to the new paradigm.

Release Notes:

- Improved resource usage when querying LSP over Collab

---------

Co-authored-by: David Kleingeld <git@davidsk.dev>
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
Co-authored-by: David Kleingeld <davidsk@zed.dev>
```

## Parents

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

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