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>
9af6e82e65Lukas Wirth committed on 12/1/2025, 1:57:15 PM· committed by GitHubparent3969109
54 files changedLine totals unavailable