aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/application.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index df3eb24d..85ea59c7 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -288,6 +288,19 @@ 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();
}