From b997d2cdeb3abd62fdd3c809a69478bbdef8642e Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 3 Sep 2021 13:02:09 +0900 Subject: dap: Allow setting breakpoints before starting the adapter --- helix-view/src/editor.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'helix-view') diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index f87ae318..adc40eb4 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -11,6 +11,7 @@ use futures_util::stream::select_all::SelectAll; use tokio_stream::wrappers::UnboundedReceiverStream; use std::{ + collections::HashMap, path::{Path, PathBuf}, sync::Arc, time::Duration, @@ -24,6 +25,7 @@ pub use helix_core::diagnostic::Severity; pub use helix_core::register::Registers; use helix_core::syntax::{self, DebugConfigCompletion}; use helix_core::Position; +use helix_dap as dap; use serde::Deserialize; @@ -81,8 +83,9 @@ pub struct Editor { pub theme: Theme, pub language_servers: helix_lsp::Registry, - pub debugger: Option, - pub debugger_events: SelectAll>, + pub debugger: Option, + pub debugger_events: SelectAll>, + pub breakpoints: HashMap>, pub debug_config_picker: Option>, pub debug_config_completions: Option>>, pub variables: Option>, @@ -127,6 +130,7 @@ impl Editor { language_servers, debugger: None, debugger_events: SelectAll::new(), + breakpoints: HashMap::new(), debug_config_picker: None, debug_config_completions: None, variables: None, -- cgit v1.2.3-70-g09d2