ZIm/crates/collab/src
Kirill Bulatov 5dcb90858e
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>
2025-08-21 09:24:34 +03:00
..
api Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
bin windows: Make collab run on Windows (#23117) 2025-01-17 09:39:13 +02:00
db Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
llm collab: Remove unused billing-related database code (#36282) 2025-08-15 22:58:10 +00:00
rpc collab: Increase minimum required version to connect (#36255) 2025-08-15 16:13:52 +00:00
tests Stop waiting for part of LSP responses on remote Collab clients' part (#36557) 2025-08-21 09:24:34 +03:00
api.rs collab: Remove GET /users/look_up endpoint (#36279) 2025-08-15 22:01:41 +00:00
auth.rs Fix clippy::redundant_clone lint violations (#36558) 2025-08-20 12:20:13 +02:00
completion.rs Supermaven (#10788) 2024-05-03 12:50:42 -07:00
db.rs lints: A bunch of extra style lint fixes (#36568) 2025-08-20 12:05:58 +02:00
env.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
errors.rs Remove more unused code related to GitHub auth and errors 2022-04-21 08:57:49 -06:00
executor.rs chore: Prepare for Rust edition bump to 2024 (without autofix) (#27791) 2025-03-31 20:10:36 +02:00
lib.rs collab: Remove unused billing-related database code (#36282) 2025-08-15 22:58:10 +00:00
llm.rs proto: Remove UpdateUserPlan message (#36268) 2025-08-15 19:21:04 +00:00
main.rs collab: Remove unused billing-related database code (#36282) 2025-08-15 22:58:10 +00:00
migrations.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
rpc.rs Stop waiting for part of LSP responses on remote Collab clients' part (#36557) 2025-08-21 09:24:34 +03:00
seed.rs Update names of collab auth functions to clarify behavior (#32648) 2025-06-13 00:35:18 +00:00
tests.rs collab: Remove Stripe code (#36275) 2025-08-15 20:49:56 +00:00
user_backfiller.rs Auto-fix clippy::collapsible_if violations (#36428) 2025-08-19 13:27:24 +00:00