# language: Only block the foreground on buffer reparsing when necessary \(\#43888\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9af6e82e65946f8b6224d03c7a6730808f2b10d3

Requested commit: 9af6e82e65946f8b6224d03c7a6730808f2b10d3

Commit: 9af6e82e65946f8b6224d03c7a6730808f2b10d3

Tree: 76aadef8250f7857e3ced3e60c75f4c5c75fdb5e

Author: Lukas Wirth

Committer: GitHub

## Message

```
language: Only block the foreground on buffer reparsing when necessary (#43888)

Gist is we only need to block the foreground thread for reparsing if
immediate language changes are useful to the user. That is usually only
the case when they edit the buffer

Release Notes:

- Improved performance of large project searches and project diffs

Co-authored by: David Kleingeld <david@zed.dev>
```

## Parents

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

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