mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-04 18:15:21 +00:00
7b721efe2c
This fixes #21837, where CompletionsMenu fuzzy match positions were
desynchronized from completion label text. The solution is to not mutate
`match_candidates` and instead offset the highlight positions in the
rendering code.
This solution requires that the fuzzy match text not change on
completion resolution. This is a property we want anyway, since fuzzy
match text changing means items unexpectedly changing position in the
menu.
What happened:
* #21521 updated completion resolution to modify labels on resolution.
- This interacted poorly with the code
[here](
|
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-GPL |