Wait for version before returning completions

This commit is contained in:
Antonio Scandurra 2022-02-17 11:41:19 +01:00
parent e824a6f220
commit 50a31721eb
4 changed files with 34 additions and 14 deletions

View file

@ -1283,6 +1283,10 @@ impl Buffer {
self.text.wait_for_edits(edit_ids)
}
pub fn wait_for_version(&mut self, version: clock::Global) -> impl Future<Output = ()> {
self.text.wait_for_version(version)
}
pub fn set_active_selections(
&mut self,
selections: Arc<[Selection<Anchor>]>,