aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-11-30 08:52:39 +0000
committerBlaž Hrastnik2021-11-30 08:56:00 +0000
commit8ffafb826faa75c76f74af3350d73adceb24e81d (patch)
treedb28dd13d6f951de222771db830f3ed21f955b23 /helix-view/src
parent3633f85b382d6f3e6324d08d880a8466aee67fa1 (diff)
dap: Rewrite breakpoints so that there's a single set maintained
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/editor.rs15
1 files changed, 14 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 73da67c9..c7b3baef 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -156,6 +156,19 @@ impl std::fmt::Debug for Motion {
}
}
+#[derive(Debug, Clone, Default)]
+pub struct Breakpoint {
+ pub id: Option<usize>,
+ pub verified: bool,
+ pub message: Option<String>,
+
+ pub line: usize,
+ pub column: Option<usize>,
+ pub condition: Option<String>,
+ pub hit_condition: Option<String>,
+ pub log_message: Option<String>,
+}
+
#[derive(Debug)]
pub struct Editor {
pub tree: Tree,
@@ -169,7 +182,7 @@ pub struct Editor {
pub debugger: Option<dap::Client>,
pub debugger_events: SelectAll<UnboundedReceiverStream<dap::Payload>>,
- pub breakpoints: HashMap<PathBuf, Vec<dap::SourceBreakpoint>>,
+ pub breakpoints: HashMap<PathBuf, Vec<Breakpoint>>,
pub clipboard_provider: Box<dyn ClipboardProvider>,