aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/document.rs')
-rw-r--r--helix-view/src/document.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index 9b6f3cca..8d6144cf 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -134,7 +134,7 @@ impl Document {
self.last_saved_revision = self.history.current_revision();
async move {
- use smol::{fs::File, prelude::*};
+ use tokio::{fs::File, io::AsyncWriteExt};
let mut file = File::create(path).await?;
// write all the rope chunks to file
@@ -232,7 +232,9 @@ impl Document {
transaction.changes(),
);
- smol::block_on(notify).expect("failed to emit textDocument/didChange");
+ if let Some(notify) = notify {
+ tokio::spawn(notify);
+ } //.expect("failed to emit textDocument/didChange");
}
}
success