@@ -1,5 +1,5 @@
1use arc_swap::{access::Map, ArcSwap};
1use arc_swap::{access::Map, ArcSwap};
2−use futures_util::{Stream, StreamExt};
2+use futures_util::Stream;
3use helix_core::{
3use helix_core::{
4 diagnostic::{DiagnosticTag, NumberOrString},
4 diagnostic::{DiagnosticTag, NumberOrString},
5 path::get_relative_path,
5 path::get_relative_path,
@@ -969,22 +969,7 @@ impl Application {
969 let mut errs = Vec::new();
969 let mut errs = Vec::new();
971 // TODO: deduplicate with ctx.block_try_flush_writes
971 // TODO: deduplicate with ctx.block_try_flush_writes
972− tokio::task::block_in_place(|| {
972+ tokio::task::block_in_place(|| helix_lsp::block_on(self.editor.flush_writes()));
973− helix_lsp::block_on(async {
974− while let Some(save_event) = self.editor.save_queue.next().await {
977− let doc = doc_mut!(self.editor, &event.doc_id);
978− doc.set_last_saved_revision(event.revision);
981− log::error!("error saving document: {}", err);
984− // TODO: if is_err: break?
989 if let Err(err) = self
974 if let Err(err) = self