diff --git a/crates/language/src/buffer.rs b/crates/language/src/buffer.rs index 20ecd9594b9d4a..1f4c56ecc86ff6 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 }) }