Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add missing wait_for_anchors (#8509)
Conrad Irwind545fe9fe464
diff --git a/crates/project/src/lsp_command.rs b/crates/project/src/lsp_command.rsindex 9e432c1eacf..59e958d0820 100644--- a/crates/project/src/lsp_command.rs+++ b/crates/project/src/lsp_command.rs@@ -1405,6 +1405,13 @@ impl LspCommand for GetHover {} else {None};+ if let Some(range) = range.as_ref() {+ buffer+ .update(&mut cx, |buffer, _| {+ buffer.wait_for_anchors([range.start.clone(), range.end.clone()])+ })?+ .await?;+ }Ok(Some(Hover {contents,