# Fix diff base text not being syntax-highlighted \(\#46001\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/21eb233a387f5b622d47f6db6bee75aed35f07e3)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 21eb233a387f5b622d47f6db6bee75aed35f07e3

Requested commit: 21eb233a387f5b622d47f6db6bee75aed35f07e3

Commit: 21eb233a387f5b622d47f6db6bee75aed35f07e3

Tree: 28bf9febf40adcb6fe95b52a669425c9531a819f

Author: Cole Miller

Committer: GitHub

## Message

```
Fix diff base text not being syntax-highlighted (#46001)

Regressed in #44838

- Wait to emit `LanguageChanged` from `BufferDiff` until the base text
has finished (re)parsing
- Set the language registry on the base text buffer before setting the
language, to ensure that language inclusions are correctly parsed

Release Notes:

- N/A (nightly only)
```

## Parents

- [43f7dc46e90ac9e21854399739edebef7c25cc30](https://git.cafe/gitcafe/zed/commit/43f7dc46e90ac9e21854399739edebef7c25cc30?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/21eb233a387f5b622d47f6db6bee75aed35f07e3?format=markdown)
