jump to selected stack frame
commitc6186ce6004449846cbdd5d343c8682a9026feb4
authorDmitry Sharshakov <d3dx12.xx@gmail.com>
dateSat 4 Sep 2021, 10:24 (5 years ago)
parentcb31d20
helix-term/src/commands/dap.rs+7
@@ -506,6 +506,13 @@ pub fn dap_switch_stack_frame(cx: &mut Context) {
506506 .iter()
507507 .position(|f| f.id == frame.id);
508508 debugger.active_frame = pos;
509+
510+ let frame = debugger.stack_frames[&thread_id]
511+ .get(pos.unwrap_or(0))
512+ .cloned();
513+ if let Some(frame) = &frame {
514+ jump_to_stack_frame(editor, frame);
515+ }
509516 },
510517 move |_editor, frame| {
511518 frame