debugger: Add missing StepOut handler (#31463)

Closes #31317

Release Notes:

- Debugger Beta: Fixed a bug that prevented keybindings for the
`StepOut` action from working.
This commit is contained in:
Cole Miller 2025-05-26 21:19:07 -04:00 committed by GitHub
parent 62545b985f
commit 092be31b2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -119,6 +119,17 @@ pub fn init(cx: &mut App) {
}
}
})
.register_action(|workspace, _: &StepOut, _, cx| {
if let Some(debug_panel) = workspace.panel::<DebugPanel>(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::<DebugPanel>(cx) {
if let Some(active_item) = debug_panel