aboutsummaryrefslogtreecommitdiff
path: root/helix-dap/src/client.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-08-19 02:24:53 +0000
committerBlaž Hrastnik2021-08-20 04:51:38 +0000
commit94a1951d40d26f4f535bdb5aab5668c84fdd95ae (patch)
treef0cfbfca98cbddbb3388f935671eaee00343b53a /helix-dap/src/client.rs
parent8759dc7e3389a6215f6a28e3e89e4a4912aca3c4 (diff)
Work towards a breakpoint UI
Diffstat (limited to 'helix-dap/src/client.rs')
-rw-r--r--helix-dap/src/client.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs
index 487022cf..84704b96 100644
--- a/helix-dap/src/client.rs
+++ b/helix-dap/src/client.rs
@@ -33,6 +33,9 @@ pub struct Client {
request_counter: AtomicU64,
capabilities: Option<DebuggerCapabilities>,
awaited_events: Arc<Mutex<HashMap<String, Sender<Event>>>>,
+
+ //
+ pub breakpoints: HashMap<PathBuf, Vec<SourceBreakpoint>>,
}
impl Client {
@@ -51,6 +54,8 @@ impl Client {
request_counter: AtomicU64::new(0),
capabilities: None,
awaited_events: Arc::new(Mutex::new(HashMap::default())),
+ //
+ breakpoints: HashMap::new(),
};
tokio::spawn(Self::recv(Arc::clone(&client.awaited_events), server_rx));