ZIm/crates/proto/proto
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
..
ai.proto collab: Remove CountLanguageModelTokens RPC message (#29314) 2025-04-23 23:10:47 +00:00
app.proto Add minidump crash reporting (#35263) 2025-08-04 18:19:42 -07:00
buf.yaml Extract a proto crate out of rpc (#12852) 2024-06-10 12:49:53 -06:00
buffer.proto project: Fix search filter patterns on remote projects (#34748) 2025-07-23 00:18:45 -06:00
call.proto Stop sending redundant LSP proto requests (#35581) 2025-08-05 13:36:05 +00:00
channel.proto Add channel reordering functionality (#31833) 2025-06-04 16:56:33 +00:00
core.proto Use git config --global user.email for email address in automatic Co-authored-by (#32624) 2025-06-12 19:39:08 +00:00
debugger.proto debugger: Fix not being able to stop a Go debug session when no breakpoints were ever hit (#35190) 2025-07-28 13:14:36 +00:00
git.proto git: Add option to branch from default branch in branch picker (#34663) 2025-08-04 18:08:00 +00:00
lsp.proto Stop sending redundant LSP proto requests (#35581) 2025-08-05 13:36:05 +00:00
notification.proto Split protobufs into separate files (#28130) 2025-04-04 16:15:49 -07:00
task.proto Split protobufs into separate files (#28130) 2025-04-04 16:15:49 -07:00
toolchain.proto python: Re-land usage of source file path in toolchain picker (#31893) 2025-06-02 16:29:06 +00:00
worktree.proto debugger/tasks: Remove TaskType enum (#29208) 2025-04-26 01:44:56 +02:00
zed.proto Add minidump crash reporting (#35263) 2025-08-04 18:19:42 -07:00