From 18c32118b1df63895b662c1b37ada28ad0d5c9b5 Mon Sep 17 00:00:00 2001 From: Skyler Hawthorne Date: Tue, 30 Aug 2022 23:10:33 -0400 Subject: Save text in document saved events, use in status message --- helix-view/src/document.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'helix-view') diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 91d5f8aa..61bea527 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -93,6 +93,7 @@ pub struct DocumentSavedEvent { pub revision: usize, pub doc_id: DocumentId, pub path: PathBuf, + pub text: Rope, } pub type DocumentSavedEventResult = Result; @@ -620,6 +621,7 @@ impl Document { revision: current_rev, doc_id, path, + text: text.clone(), }; if let Some(language_server) = language_server { -- cgit v1.2.3-70-g09d2