From 092be31b2b4a1decc27e8ac9ba7b6584e9dbfe7c Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Mon, 26 May 2025 21:19:07 -0400 Subject: [PATCH] debugger: Add missing StepOut handler (#31463) Closes #31317 Release Notes: - Debugger Beta: Fixed a bug that prevented keybindings for the `StepOut` action from working. --- crates/debugger_ui/src/debugger_ui.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/debugger_ui/src/debugger_ui.rs b/crates/debugger_ui/src/debugger_ui.rs index 2cb38d3188..a317df4147 100644 --- a/crates/debugger_ui/src/debugger_ui.rs +++ b/crates/debugger_ui/src/debugger_ui.rs @@ -119,6 +119,17 @@ pub fn init(cx: &mut App) { } } }) + .register_action(|workspace, _: &StepOut, _, cx| { + if let Some(debug_panel) = workspace.panel::(cx) { + if let Some(active_item) = debug_panel.read_with(cx, |panel, cx| { + panel + .active_session() + .map(|session| session.read(cx).running_state().clone()) + }) { + active_item.update(cx, |item, cx| item.step_out(cx)) + } + } + }) .register_action(|workspace, _: &StepBack, _, cx| { if let Some(debug_panel) = workspace.panel::(cx) { if let Some(active_item) = debug_panel