Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Ensure proposed changes editor is syntax-highlighted when opened (#18648)
Marshall Bowers7c4615519bef
diff --git a/crates/language/src/buffer.rs b/crates/language/src/buffer.rsindex 20ecd9594b9..1f4c56ecc86 100644--- a/crates/language/src/buffer.rs+++ b/crates/language/src/buffer.rs@@ -819,6 +819,9 @@ impl Buffer {branch.set_language_registry(language_registry);}+ // Reparse the branch buffer so that we get syntax highlighting immediately.+ branch.reparse(cx);+branch})}