# Show more possible matches in code context completion \(\#27199\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7b80cd865dc9c05a4f25c3bcdfbcec419503686b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7b80cd865dc9c05a4f25c3bcdfbcec419503686b

Requested commit: 7b80cd865dc9c05a4f25c3bcdfbcec419503686b

Commit: 7b80cd865dc9c05a4f25c3bcdfbcec419503686b

Tree: aaddafb8416a1111b3c06e3e3f53978118f5764d

Author: Smit Barmase

Committer: GitHub

## Message

```
Show more possible matches in code context completion (#27199)

Closes #24794

We now don't filter matches provided by the fuzzy matcher, as it already
performs most of the filtering for us. Instead, the custom logic we
previously used for filtering is now used to partition, where before
discarded matches will be appended at end of list.

Before - Filtering out matches with higher fuzzy score
<img width="400" alt="image"
src="https://github.com/user-attachments/assets/7f9d66a2-0921-499c-af8a-f1e530da50b1"
/>

After - Changing filter to partition instead, and appending remaining
items at the end
<img width="400" alt="image"
src="https://github.com/user-attachments/assets/45848f70-ed51-4935-976c-6c16c5b5777b"
/>


Release Notes:

- Improved LSP auto complete to show more possible matches.

---------

Co-authored-by: Peter Tripp <petertripp@gmail.com>
```

## Parents

- [7931b1d345a6b5e7bf85796ee48c022f56156edb](https://git.cafe/gitcafe/zed/commit/7931b1d345a6b5e7bf85796ee48c022f56156edb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7b80cd865dc9c05a4f25c3bcdfbcec419503686b?format=markdown)
