zed/crates/open_path_prompt
Oleksiy Syvokon ddb847d03a
Fix race condition in OpenPathDelegate (#57290)
Directory entries and string matches can briefly go out of sync during
async updates. When that happens, we used to highlight the wrong
substring (best case), or panic if the offset happens to be mid-Unicode
or out of range.

After this change, we fall back to rendering a row without highlights
when matches are out of sync. The highlight will be shown on the next
frame. This is a rare condition and the easiest fix, so should be
acceptable.

Closes FR-11

Release Notes:

- Fixed rare panic in the open path dialog
2026-05-21 03:59:50 +00:00
..
src Fix race condition in OpenPathDelegate (#57290) 2026-05-21 03:59:50 +00:00
Cargo.toml Respect sort_mode in workspace: open files (#56720) 2026-05-14 19:51:10 +00:00
LICENSE-GPL