editor: Ensure proposed changes editor is syntax-highlighted when opened (#18648)

This PR fixes an issue where the proposed changes editor would not have
any syntax highlighting until a modification was made.

When creating the branch buffer we reparse the buffer to rebuild the
syntax map.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-10-02 14:23:59 -04:00 committed by GitHub
parent 0e8276560f
commit 7c4615519b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
})
}