mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 05:00:16 +00:00
Add missing wait_for_anchors (#8509)
Release Notes: - Fixed a panic when hovering in a collaboration session
This commit is contained in:
parent
9765260567
commit
d545fe9fe4
1 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue