diff options
Diffstat (limited to 'helix-view')
-rw-r--r-- | helix-view/src/document.rs | 2 | ||||
-rw-r--r-- | helix-view/src/editor.rs | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 3e8ed21c..ff0c8bf4 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -100,7 +100,6 @@ pub struct Document { diagnostics: Vec<Diagnostic>, language_server: Option<Arc<helix_lsp::Client>>, - pub debugger: Option<helix_dap::Client>, } use std::fmt; @@ -426,7 +425,6 @@ impl Document { history: Cell::new(History::default()), last_saved_revision: 0, language_server: None, - debugger: None, line_ending: DEFAULT_LINE_ENDING, } } diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 7b9f34fc..1fae59be 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -73,7 +73,10 @@ pub struct Editor { pub registers: Registers, pub theme: Theme, pub language_servers: helix_lsp::Registry, - pub debuggers: SelectAll<UnboundedReceiverStream<(usize, helix_dap::Payload)>>, + + pub debugger: Option<helix_dap::Client>, + pub debuggers: SelectAll<UnboundedReceiverStream<helix_dap::Payload>>, + pub clipboard_provider: Box<dyn ClipboardProvider>, pub syn_loader: Arc<syntax::Loader>, @@ -111,6 +114,7 @@ impl Editor { selected_register: RegisterSelection::default(), theme: themes.default(), language_servers, + debugger: None, debuggers: SelectAll::new(), syn_loader: config_loader, theme_loader: themes, |