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:
parent
0e8276560f
commit
7c4615519b
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue