ZIm/crates/collab/src
Kirill Bulatov 22473fc611
Stop sending redundant LSP proto requests (#35581)
Before, each time any LSP feature was used on client remote, it always
produced a `proto::` request that always had been sent to the host, from
where returned as an empty response.

Instead, propagate more language server-related data to the client,
`lsp::ServerCapability`, so Zed client can omit certain requests if
those are not supported.

On top of that, rework the approach Zed uses to query for the data
refreshes: before, editors tried to fetch the data when the server start
was reported (locally and remotely).
Now, a later event is selected: on each `textDocument/didOpen` for the
buffer contained in this editor, we will query for new LSP data, reusing
the cache if needed.

Before, servers could reject unregistered files' LSP queries, or process
them slowly when starting up.
Now, such refreshes are happening later and should be cached.

This requires a collab DB change, to restore server data on rejoin.

Release Notes:

- Fixed excessive LSP requests sent during remote sessions
2025-08-05 13:36:05 +00:00
..
api Rename remaining mentions of "inline completion" to "edit prediction" (#35512) 2025-08-04 16:22:18 +00:00
bin windows: Make collab run on Windows (#23117) 2025-01-17 09:39:13 +02:00
db Stop sending redundant LSP proto requests (#35581) 2025-08-05 13:36:05 +00:00
llm Replace zed_llm_client with cloud_llm_client (#35309) 2025-07-30 00:09:14 +00:00
rpc Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
stripe_client collab: Enable automatic tax calculation for all new subscriptions (#34720) 2025-07-18 21:42:48 +00:00
tests Stop sending redundant LSP proto requests (#35581) 2025-08-05 13:36:05 +00:00
api.rs Rework authentication for local Cloud/Collab development (#35450) 2025-08-01 00:55:17 +00:00
auth.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
completion.rs Supermaven (#10788) 2024-05-03 12:50:42 -07:00
db.rs Stop sending redundant LSP proto requests (#35581) 2025-08-05 13:36:05 +00: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 GET /billing/preferences endpoint (#34566) 2025-07-16 17:55:01 +00:00
llm.rs collab: Remove GET /billing/preferences endpoint (#34566) 2025-07-16 17:55:01 +00:00
main.rs Never run transactions using serializable isolation (#33780) 2025-07-02 14:30:38 +00:00
migrations.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
rpc.rs Stop sending redundant LSP proto requests (#35581) 2025-08-05 13:36:05 +00:00
seed.rs Update names of collab auth functions to clarify behavior (#32648) 2025-06-13 00:35:18 +00:00
stripe_billing.rs collab: Remove POST /billing/subscriptions endpoint (#34928) 2025-07-22 18:57:07 -04:00
stripe_client.rs collab: Enable automatic tax calculation for all new subscriptions (#34720) 2025-07-18 21:42:48 +00:00
tests.rs onboarding ui: Add theme preview tiles and button functionality to basic page (#35413) 2025-07-31 18:40:41 +00:00
user_backfiller.rs Update names of collab auth functions to clarify behavior (#32648) 2025-06-13 00:35:18 +00:00