Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
diagnostics: Fall back to `multibuffer_context_lines` when syntactic expansion produces a single-line range (#53526)
Cole Millerc998b4a053b2
diff --git a/crates/diagnostics/src/diagnostics.rs b/crates/diagnostics/src/diagnostics.rsindex dc3708e9307..49e17e69b00 100644--- a/crates/diagnostics/src/diagnostics.rs+++ b/crates/diagnostics/src/diagnostics.rs@@ -989,6 +989,7 @@ async fn context_range_for_entry(cx,).await+ .filter(|rows| rows.start() != rows.end()){Range {start: Point::new(*rows.start(), 0),