ZIm/crates/project/src
Cole Miller e0c860c42a
debugger: Fix issues with restarting sessions (#33932)
Restarting sessions was broken in #33273 when we moved away from calling
`kill` in the shutdown sequence. This PR re-adds that `kill` call so
that old debug adapter processes will be cleaned up when sessions are
restarted within Zed. This doesn't re-introduce the issue that motivated
the original changes to the shutdown sequence, because we still send
Disconnect/Terminate to debug adapters when quitting Zed without killing
the process directly.

We also now remove manually-restarted sessions eagerly from the session
list.

Closes #33916 

Release Notes:

- debugger: Fixed not being able to restart sessions for Debugpy and
other adapters that communicate over TCP.
- debugger: Fixed debug adapter processes not being cleaned up.

---------

Co-authored-by: Remco Smits <djsmits12@gmail.com>
2025-07-07 18:28:59 +00:00
..
context_server_store agent: Fix bug that prevented MCP servers to appear in the settings view (#33857) 2025-07-03 15:05:29 +00:00
debugger debugger: Fix issues with restarting sessions (#33932) 2025-07-07 18:28:59 +00:00
git_store chore: Bump Rust version to 1.88 (#33439) 2025-06-26 20:54:19 +02:00
lsp_command lsp: Complete overloaded signature help implementation (#33199) 2025-07-02 20:51:08 +03:00
lsp_store Respect server capabilities on queries (#33538) 2025-06-27 16:31:40 +00:00
manifest_tree Add language server control tool into the status bar (#32490) 2025-06-25 19:57:28 +03: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 agent_ui: Fix disabled context servers not showing in agent setting (#33856) 2025-07-07 12:02:33 +02:00
debounced_delay.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
debugger.rs debugger: More tidy up for SSH (#28993) 2025-04-21 16:00:03 +00: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 Fix parsing of direnv export json to support unset of environment variables + better logging (#32559) 2025-06-11 17:57:30 +00:00
git_store.rs chore: Bump Rust version to 1.88 (#33439) 2025-06-26 20:54:19 +02: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 Query multiple LSPs for more types of requests (#29359) 2025-07-02 20:51:19 +03:00
lsp_store.rs debugger: Improve debug console autocompletions (#33868) 2025-07-05 16:20:41 +02: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 debugger: Improve debug console autocompletions (#33868) 2025-07-05 16:20:41 +02:00
project_settings.rs Warn about unknown fields when editing settings json (#33678) 2025-06-30 23:34:25 +00:00
project_tests.rs debugger: Fix the JavaScript debug terminal scenario (#33924) 2025-07-05 19:48:55 -04:00
search.rs Reduce allocations (#31223) 2025-05-23 14:25:17 +03:00
search_history.rs project: Use VecDeque in SearchHistory (#31224) 2025-05-23 14:25:40 +03: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 debugger: Fix the JavaScript debug terminal scenario (#33924) 2025-07-05 19:48:55 -04: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 Improve TypeScript task detection (#31711) 2025-05-29 20:51:20 +00:00
yarn.rs Use read-only access methods for read-only entity operations (#31479) 2025-05-26 23:04:31 -04:00