Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/handlers/lsp.rs')
| -rw-r--r-- | helix-view/src/handlers/lsp.rs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/helix-view/src/handlers/lsp.rs b/helix-view/src/handlers/lsp.rs index c1041b2a..b60be0c0 100644 --- a/helix-view/src/handlers/lsp.rs +++ b/helix-view/src/handlers/lsp.rs @@ -5,9 +5,8 @@ use crate::editor::Action; use crate::events::{ DiagnosticsDidChange, DocumentDidChange, DocumentDidClose, LanguageServerInitialized, }; -use crate::{DocumentId, Editor}; -use helix_core::diagnostic::DiagnosticProvider; -use helix_core::Uri; +use crate::{DocumentId, Editor, ViewId}; +use helix_core::{diagnostic::DiagnosticProvider, Uri}; use helix_event::register_hook; use helix_lsp::util::generate_transaction_from_edits; use helix_lsp::{lsp, LanguageServerId, OffsetEncoding}; @@ -31,6 +30,16 @@ pub enum SignatureHelpEvent { } #[derive(Debug)] +pub enum InlayHintEvent { + /// The contents of a document changed. + /// This event should request annotations after a long debounce. + DocumentChanged(DocumentId), + /// The viewport was scrolled and/or the selection changed. + /// This event should request annotations after a short debounce. + ViewportScrolled(ViewId), +} + +#[derive(Debug)] pub struct ApplyEditError { pub kind: ApplyEditErrorKind, pub failed_change_idx: usize, |