zed/crates/debugger_ui
xcb3d a8bf82c469
debugger: Fix crash when dragging pane items to split view (#46806)
## Summary

Fixes crash when dragging debugger panel items
(terminal/console/variables/frames) to another pane as split view.

  **Root causes:**
1. Double borrow panic - `pane_group.split()` was called synchronously
inside a `Context<Pane>` update, causing "cannot update Pane while it is
already being updated"
2. `unwrap()` calls that panic when items are in transition during drag
operations
3. `debug_assert!` in `pane_at_pixel_position` fails when `members` and
`bounding_boxes` are temporarily out of sync after deferred split

  **Fixes:**
- Defer entire split+move operation via `cx.spawn_in()` to avoid double
borrow
- Replace `unwrap()` with graceful early returns in `activate_item` and
`run_in_terminal`
- Handle `members.len() != bounding_boxes.len()` gracefully in
`pane_at_pixel_position`

Closes #46784

Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...

---------

Co-authored-by: Anthony Eid <anthony@zed.dev>
2026-01-20 18:02:03 +00:00
..
src debugger: Fix crash when dragging pane items to split view (#46806) 2026-01-20 18:02:03 +00:00
Cargo.toml debugger: Start work on adding session snapshot feature (#44298) 2025-12-06 19:31:08 +00:00
LICENSE-GPL Debugger implementation (#13433) 2025-03-18 12:55:25 -04:00