diff options
author | Dmitry Sharshakov | 2021-08-21 14:21:35 +0000 |
---|---|---|
committer | Dmitry Sharshakov | 2021-08-21 14:21:35 +0000 |
commit | a938f5a87a2b67dd8667337cd569cc6627d0f666 (patch) | |
tree | ecce252fd9c451f23c583bb734dc9912d39c13e7 /helix-view/src | |
parent | 3fc501c99f8f8c539dc4714a200bac45a7169138 (diff) |
refactor: handle DAP events in editor main loop
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/editor.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 2309379a..17319327 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -8,7 +8,6 @@ use crate::{ use futures_util::future; use futures_util::stream::select_all::SelectAll; -use tokio::sync::Mutex; use tokio_stream::wrappers::UnboundedReceiverStream; use std::{ @@ -75,8 +74,8 @@ pub struct Editor { pub theme: Theme, pub language_servers: helix_lsp::Registry, - pub debugger: Option<Arc<Mutex<helix_dap::Client>>>, - pub debuggers: SelectAll<UnboundedReceiverStream<helix_dap::Payload>>, + pub debugger: Option<helix_dap::Client>, + pub debugger_events: SelectAll<UnboundedReceiverStream<helix_dap::Payload>>, pub clipboard_provider: Box<dyn ClipboardProvider>, @@ -116,7 +115,7 @@ impl Editor { theme: themes.default(), language_servers, debugger: None, - debuggers: SelectAll::new(), + debugger_events: SelectAll::new(), syn_loader: config_loader, theme_loader: themes, registers: Registers::default(), |