debugger: Fix crash when splitting a pane by dragging a pane item that originated from that pane (#46806)

xcb3d and Anthony Eid created

Closes #46784

This panic was caused by a double borrow when the pane an item was moved too is the same pane the item originate from. The fix was using a window.defer to avoid the double lease, instead of updating in a Context<Pane>

Release Notes:

---------

Co-authored-by: Anthony Eid <anthony@zed.dev>

Change summary

0 files changed

Detailed changes