Fix panic when loading hover state. (#7861)
Release Notes: - Fixed a panic when hovering over an identifier in the editor
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user