# editor: Fix edit predictions polluting completions menu \(\#50403\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7a6a95c2cdd439dc2222f5c0936274bc5aac3722

Requested commit: 7a6a95c2cdd439dc2222f5c0936274bc5aac3722

Commit: 7a6a95c2cdd439dc2222f5c0936274bc5aac3722

Tree: 9ecff5f103664147d3c24d0e8fcae8e2c77822b2

Author: João Soares

Committer: GitHub

## Message

```
editor: Fix edit predictions polluting completions menu (#50403)

Closes #49565

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI

checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Screenshots
Before:
<img width="1509" height="726" alt="image"
src="https://github.com/user-attachments/assets/4931262a-e243-4e54-8ba8-f5fd13ec7bff"
/>



After:
<img width="1284" height="611" alt="image"
src="https://github.com/user-attachments/assets/0466cab6-d303-484c-a22b-4c168d21cec6"
/>
<img width="1284" height="611" alt="image"
src="https://github.com/user-attachments/assets/d6bce35b-e599-42da-9c4d-214e490677d5"
/>


Release Notes:

- Fixed edit predictions polluting the completions menu with unrelated
snippets (e.g. Unicode symbols) when
`show_in_completions_menu` is disabled

---------

Co-authored-by: Ben Kunkle <ben.kunkle@gmail.com>
```

## Parents

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

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