WIP: Save remote buffers

This commit is contained in:
Antonio Scandurra
2021-07-02 17:02:17 +02:00
parent b8bddd6c05
commit 569a4a1e2d
5 changed files with 140 additions and 28 deletions
+5 -1
View File
@@ -2538,7 +2538,11 @@ impl workspace::ItemView for Editor {
}
fn save(&mut self, cx: &mut ViewContext<Self>) -> Result<Task<Result<()>>> {
self.buffer.update(cx, |b, cx| b.save(cx))
let save = self.buffer.update(cx, |b, cx| b.save(cx))?;
Ok(cx.spawn(|_, _| async move {
save.await?;
Ok(())
}))
}
fn save_as(