Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-view/src/events.rs')
-rw-r--r--helix-view/src/events.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/helix-view/src/events.rs b/helix-view/src/events.rs
index eb97268c..4a44beb3 100644
--- a/helix-view/src/events.rs
+++ b/helix-view/src/events.rs
@@ -1,9 +1,14 @@
use helix_core::{ChangeSet, Rope};
use helix_event::events;
+use helix_lsp::LanguageServerId;
use crate::{Document, DocumentId, Editor, ViewId};
events! {
+ DocumentDidOpen<'a> {
+ editor: &'a mut Editor,
+ doc: DocumentId
+ }
DocumentDidChange<'a> {
doc: &'a mut Document,
view: ViewId,
@@ -11,8 +16,21 @@ events! {
changes: &'a ChangeSet,
ghost_transaction: bool
}
+ DocumentDidClose<'a> {
+ editor: &'a mut Editor,
+ doc: Document
+ }
SelectionDidChange<'a> { doc: &'a mut Document, view: ViewId }
DiagnosticsDidChange<'a> { editor: &'a mut Editor, doc: DocumentId }
// called **after** a document loses focus (but not when its closed)
DocumentFocusLost<'a> { editor: &'a mut Editor, doc: DocumentId }
+
+ LanguageServerInitialized<'a> {
+ editor: &'a mut Editor,
+ server_id: LanguageServerId
+ }
+ LanguageServerExited<'a> {
+ editor: &'a mut Editor,
+ server_id: LanguageServerId
+ }
}