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 {
|
} else {
|
||||||
None
|
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 {
|
Ok(Some(Hover {
|
||||||
contents,
|
contents,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue