diff options
author | Dmitry Sharshakov | 2021-09-04 07:24:00 +0000 |
---|---|---|
committer | Dmitry Sharshakov | 2021-09-04 07:24:00 +0000 |
commit | c6186ce6004449846cbdd5d343c8682a9026feb4 (patch) | |
tree | 9f12b0fc1df110dc1e23f285d09b21a2488a4765 /helix-term/src/commands | |
parent | cb31d20b46141558db886be3ad8efc76ba0c098f (diff) |
jump to selected stack frame
Diffstat (limited to 'helix-term/src/commands')
-rw-r--r-- | helix-term/src/commands/dap.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs index 6da6cc81..5f16bcbb 100644 --- a/helix-term/src/commands/dap.rs +++ b/helix-term/src/commands/dap.rs @@ -506,6 +506,13 @@ pub fn dap_switch_stack_frame(cx: &mut Context) { .iter() .position(|f| f.id == frame.id); debugger.active_frame = pos; + + let frame = debugger.stack_frames[&thread_id] + .get(pos.unwrap_or(0)) + .cloned(); + if let Some(frame) = &frame { + jump_to_stack_frame(editor, frame); + } }, move |_editor, frame| { frame |