Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix panic in inlay hints (#49994)
Conrad Irwincbb9cce38dd6
diff --git a/crates/editor/src/inlays/inlay_hints.rs b/crates/editor/src/inlays/inlay_hints.rsindex 72951834ff4..19953659ac6 100644--- a/crates/editor/src/inlays/inlay_hints.rs+++ b/crates/editor/src/inlays/inlay_hints.rs@@ -578,6 +578,7 @@ impl Editor {if let Some(hovered_hint) = self.visible_inlay_hints(cx).into_iter()+ .filter(|hint| snapshot.can_resolve(&hint.position)).skip_while(|hint| {hint.position.cmp(&previous_valid_anchor, &buffer_snapshot)