use crate::{DocumentId, ViewId}; pub enum CompletionEvent { /// Auto completion was triggered by typing a word char AutoTrigger { cursor: usize, doc: DocumentId, view: ViewId, }, /// Auto completion was triggered by typing a trigger char /// specified by the LSP TriggerChar { cursor: usize, doc: DocumentId, view: ViewId, }, /// A completion was manually requested (c-x) ManualTrigger { cursor: usize, doc: DocumentId, view: ViewId, }, /// Some text was deleted and the cursor is now at `pos` DeleteText { cursor: usize }, /// Invalidate the current auto completion trigger Cancel, } #[derive(Debug, PartialEq, Eq, Clone, Copy)] pub enum SignatureHelpInvoked { Automatic, Manual, } pub enum SignatureHelpEvent { Invoked, Trigger, ReTrigger, Cancel, RequestComplete { open: bool }, }