ZIm/crates/language
gcp-cherry-pick-bot[bot] 4d73569ed7
editor: Utilize filter_text from language server for filter_range (cherry-pick #33155) (#33436)
Cherry-picked editor: Utilize `filter_text` from language server for
`filter_range` (#33155)

Closes #33106

Instead of directly using `filter_text` in `StringMatchCandidate`, which
yields better results for fuzzy matching but messes up with highlighting
letters in bold, as `positions` list generated by fuzzy crate are now of
`filter_text` and not `label` shown to the user.

This PR fixes it by keeping use of `filter_range` in
`StringMatchCandidate`, which is range w.r.t to `label` shown to user.
And actually generating this `filter_range` at source by using
`filter_range` if exists.

- [x] Tests

Release Notes:

- Fixed issue where incorrect letters are marked as bold in completions.

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
2025-06-26 13:17:26 +05:30
..
src editor: Utilize filter_text from language server for filter_range (cherry-pick #33155) (#33436) 2025-06-26 13:17:26 +05:30
build.rs Fix context line handline in project diagnostic view 2021-12-21 11:46:47 -08:00
Cargo.toml Replace async-watch with a custom watch (#32245) 2025-06-06 16:00:09 +00:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00