ZIm/crates/dap/src
Cole Miller a8cc927303
debugger: Improve appearance of session list for JavaScript debugging (#34322)
This PR updates the debugger panel's session list to be more useful in
some cases that are commonly hit when using the JavaScript adapter. We
make two adjustments, which only apply to JavaScript sessions:

- For a child session that's the only child of a root session, we
collapse it with its parent. This imitates what VS Code does in the
"call stack" view for JavaScript sessions.
- When a session has exactly one thread, we label the session with that
thread's name, instead of the session label provided by the DAP. VS Code
also makes this adjustment, which surfaces more useful information when
working with browser sessions.

Closes #33072 

Release Notes:

- debugger: Improved the appearance of JavaScript sessions in the debug
panel's session list.

---------

Co-authored-by: Julia <julia@zed.dev>
Co-authored-by: Remco Smits <djsmits12@gmail.com>
2025-07-12 15:56:05 +00:00
..
adapters.rs debugger: Improve appearance of session list for JavaScript debugging (#34322) 2025-07-12 15:56:05 +00:00
client.rs debugger: Fix endless restarts when connecting to TCP adapters over SSH (#34328) 2025-07-12 11:27:18 -04:00
dap.rs extension: Another batch of updates for DAP extension API (#32809) 2025-06-16 21:34:05 +02:00
debugger_settings.rs debugger: Enable setting debug panel dock position to the side (#29914) 2025-05-05 21:27:20 +00:00
inline_value.rs debugger: Generate inline values based on debugger.scm file (#33081) 2025-06-24 18:24:43 +00:00
proto_conversions.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
registry.rs debugger: Generate inline values based on debugger.scm file (#33081) 2025-06-24 18:24:43 +00:00
transport.rs debugger: Fix endless restarts when connecting to TCP adapters over SSH (#34328) 2025-07-12 11:27:18 -04:00