Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix panic when loading hover state. (#7861)
Conrad Irwina8d58645240d
diff --git a/crates/editor/src/hover_popover.rs b/crates/editor/src/hover_popover.rsindex b4253e074b1..8bed85305a5 100644--- a/crates/editor/src/hover_popover.rs+++ b/crates/editor/src/hover_popover.rs@@ -289,6 +289,7 @@ fn show_hover(})?;let hover_result = hover_request.await.ok().flatten();+ let snapshot = this.update(&mut cx, |this, cx| this.snapshot(cx))?;let hover_popover = match hover_result {Some(hover_result) if !hover_result.is_empty() => {// Create symbol range of anchors for highlighting and filtering of future requests.