diff options
author | Blaž Hrastnik | 2021-08-19 02:24:53 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-20 04:51:38 +0000 |
commit | 94a1951d40d26f4f535bdb5aab5668c84fdd95ae (patch) | |
tree | f0cfbfca98cbddbb3388f935671eaee00343b53a /helix-view | |
parent | 8759dc7e3389a6215f6a28e3e89e4a4912aca3c4 (diff) |
Work towards a breakpoint UI
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, |