From a938f5a87a2b67dd8667337cd569cc6627d0f666 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sat, 21 Aug 2021 17:21:35 +0300 Subject: refactor: handle DAP events in editor main loop --- helix-view/src/editor.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'helix-view/src/editor.rs') 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>>, - pub debuggers: SelectAll>, + pub debugger: Option, + pub debugger_events: SelectAll>, pub clipboard_provider: Box, @@ -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(), -- cgit v1.2.3-70-g09d2