aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-08-31 03:10:33 +0000
committerSkyler Hawthorne2022-10-19 02:31:39 +0000
commit18c32118b1df63895b662c1b37ada28ad0d5c9b5 (patch)
tree3d7a96b15e6bd8fc3255460c56188bd78176310b /helix-view
parentf82a551b98cec165ac91aae15ba656a811229fde (diff)
Save text in document saved events, use in status message
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/document.rs2
1 files changed, 2 insertions, 0 deletions
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<DocumentSavedEvent, anyhow::Error>;
@@ -620,6 +621,7 @@ impl Document {
revision: current_rev,
doc_id,
path,
+ text: text.clone(),
};
if let Some(language_server) = language_server {