Merge pull request #2169 from zed-industries/improve-autocomplete

Score matches case-sensitively when query contains an uppercase char
This commit is contained in:
Antonio Scandurra 2023-02-15 13:30:05 +01:00 committed by GitHub
commit 7641965326
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -812,7 +812,7 @@ impl CompletionsMenu {
fuzzy::match_strings( fuzzy::match_strings(
&self.match_candidates, &self.match_candidates,
query, query,
false, query.chars().any(|c| c.is_uppercase()),
100, 100,
&Default::default(), &Default::default(),
executor, executor,