aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-22 06:28:50 +0000
committerDmitry Sharshakov2021-08-22 06:28:50 +0000
commit91f2c60b3629469d918d368707a64a5c1dda73e1 (patch)
treea435e6002170b5aa7add88173005f44a4e2a3469
parent89ad54a2e5e6060cf1de91dba3e79d76d048bdaf (diff)
Jump to stack pointer when stopped
-rw-r--r--helix-term/src/application.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index a9aafad2..c52928c4 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -223,6 +223,16 @@ impl Application {
status.push_str(" (all threads stopped)");
}
+ if let Some(helix_dap::StackFrame {
+ source: Some(helix_dap::Source {
+ path: Some(src),
+ ..
+ }),
+ ..
+ }) = &debugger.stack_pointer {
+ let path = src.clone().into();
+ self.editor.open(path, helix_view::editor::Action::Replace).unwrap();
+ }
self.editor.set_status(status);
self.render();
}