zed/crates/editor
Lukas Wirth ccce05d25c
language: Fix reparse timeout not actually working (#45347)
We use `block_with_timeout` to give the reparse task a millisecond to
complete, and if it takes longer we put the work off to the background.
The reason for this is that we want tree-sitter based features to feel
snappy.
The reparse task is non-cooperative though, it has no yield points,
giving us no place to actually check for our timeout, meaning we will
always drive it to completion and block for the entire duration.
This kicks out the `block_with_timeout` in favor of using the treesitter
progress callback to handle timeouts instead.

Release Notes:

- Improved responsiveness with very language language files on edits
2026-01-05 14:18:09 +00:00
..
benches Fix stale pending keybinding indicators on focus change (#44678) 2025-12-17 16:51:16 +00:00
src language: Fix reparse timeout not actually working (#45347) 2026-01-05 14:18:09 +00:00
Cargo.toml adds tracing for instrumenting non-async functions (#44147) 2025-12-05 17:23:06 +00:00
LICENSE-GPL