ZIm/crates/project/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
..
context_server_store context_server: Change command string field to PathBuf (#34873) 2025-07-22 12:12:07 +02:00
debugger debugger: Send initialized event from fake server at a more realistic time (#35446) 2025-07-31 19:45:02 -04:00
git_store worktree: Improve performance with large # of repositories (#35052) 2025-07-25 13:18:19 +02:00
lsp_command lsp: Complete overloaded signature help implementation (#33199) 2025-07-02 20:51:08 +03:00
lsp_store keymap_ui: Auto complete action arguments (#34785) 2025-07-20 16:24:17 -04:00
manifest_tree lsp: Remove Attach enum, default to Shared behaviour (#35248) 2025-07-29 10:07:36 +00:00
buffer_store.rs Add language server control tool into the status bar (#32490) 2025-06-25 19:57:28 +03:00
color_extractor.rs Simplify static expression to a constant (#23193) 2025-01-15 19:31:21 +00:00
connection_manager.rs Finish removing git repository state and scanning logic from worktrees (#27568) 2025-04-01 17:41:20 -04:00
context_server_store.rs Ensure context servers are spawned in the workspace directory (#35271) 2025-07-29 18:03:43 +02:00
debounced_delay.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
debugger.rs debugger: Add memory view (#33955) 2025-07-14 16:32:06 +02:00
direnv.rs Fix parsing of direnv export json to support unset of environment variables + better logging (#32559) 2025-06-11 17:57:30 +00:00
environment.rs ACP (#34030) 2025-07-09 16:02:31 +00:00
git_store.rs zeta: Collect git sha / remote urls when data collection from OSS is enabled (#35514) 2025-08-04 14:18:06 -06:00
image_store.rs zlog: Replace usages of env_logger in tests with zlog (#31436) 2025-05-26 11:48:50 -04:00
lsp_command.rs Stop sending redundant LSP proto requests (#35581) 2025-08-05 13:36:05 +00:00
lsp_store.rs Stop sending redundant LSP proto requests (#35581) 2025-08-05 13:36:05 +00:00
manifest_tree.rs python: Re-land usage of source file path in toolchain picker (#31893) 2025-06-02 16:29:06 +00:00
prettier_store.rs Fix language settings formatter regression - formatter list can be a single formatter not wrapped in an array (#33721) 2025-07-01 17:47:19 +00:00
project.rs Stop sending redundant LSP proto requests (#35581) 2025-08-05 13:36:05 +00:00
project_settings.rs context_server: Change command string field to PathBuf (#34873) 2025-07-22 12:12:07 +02:00
project_tests.rs Stop sending redundant LSP proto requests (#35581) 2025-08-05 13:36:05 +00:00
search.rs project: Fix search filter patterns on remote projects (#34748) 2025-07-23 00:18:45 -06:00
search_history.rs debugger: Fix debug console persist to history when reusing a previous item (#34893) 2025-07-22 15:40:11 -04:00
task_inventory.rs debugger: Debug sessions rerun build tasks by default when restarting (#33724) 2025-07-01 15:43:58 -04:00
task_store.rs Add initial package.json scripts task autodetection (#32497) 2025-06-10 22:16:27 +00:00
terminals.rs terminal: Support ~ in cwd field of task definitions (#35097) 2025-07-25 15:39:50 +00:00
toolchain_store.rs debugger: Fix running JS tests when worktree root and package root do not coincide (#32644) 2025-06-13 05:03:07 +00:00
worktree_store.rs windows: Add support for SSH (#29145) 2025-07-08 14:34:57 +00:00
yarn.rs Use read-only access methods for read-only entity operations (#31479) 2025-05-26 23:04:31 -04:00