ZIm/crates/dap_adapters/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
..
codelldb.rs debugger: Do not include Rust in default value for sourceLanguages (CodeLLDB config) (#33670) 2025-07-01 11:03:40 +00:00
dap_adapters.rs debugger: Remove PHP debug adapter (#34020) 2025-07-08 01:36:32 +02:00
gdb.rs debugger: Support passing custom arguments to debug adapters (#33251) 2025-06-23 17:06:48 +00:00
go.rs go: Write envFile properties back to env config (#34300) 2025-07-11 18:26:46 +00:00
javascript.rs debugger: Improve appearance of session list for JavaScript debugging (#34322) 2025-07-12 15:56:05 +00:00
python.rs debugger: Use debugpy's suggested names for child sessions (#33885) 2025-07-04 00:15:02 +00:00