From 8ffafb826faa75c76f74af3350d73adceb24e81d Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 30 Nov 2021 17:52:39 +0900 Subject: dap: Rewrite breakpoints so that there's a single set maintained --- helix-view/src/editor.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'helix-view/src') 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, + pub verified: bool, + pub message: Option, + + pub line: usize, + pub column: Option, + pub condition: Option, + pub hit_condition: Option, + pub log_message: Option, +} + #[derive(Debug)] pub struct Editor { pub tree: Tree, @@ -169,7 +182,7 @@ pub struct Editor { pub debugger: Option, pub debugger_events: SelectAll>, - pub breakpoints: HashMap>, + pub breakpoints: HashMap>, pub clipboard_provider: Box, -- cgit v1.2.3-70-g09d2