Fix panic when loading hover state. (#7861)

Conrad Irwin created

Release Notes:

- Fixed a panic when hovering over an identifier in the editor

Change summary

crates/editor/src/hover_popover.rs | 1 +
1 file changed, 1 insertion(+)

Detailed changes

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.