# editor: Fix code completions menu flashing due variable width \(\#30598\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 67f9da08463d1f05e2a24ae7b8ccbe523223f543

Requested commit: 67f9da08463d1f05e2a24ae7b8ccbe523223f543

Commit: 67f9da08463d1f05e2a24ae7b8ccbe523223f543

Tree: 55d877c36c8836fb5b1aefaf1f543d367dc74db9

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Fix code completions menu flashing due variable width (#30598)

Closes #27631

We use `widest_completion_ix` to figure out completion menu width. This
results in flickering between frames as more information about
completion items, such as signatures, is populated asynchronously. There
is no way to know this width or which item will be widest beforehand.
While using a hardcoded value feels like a backward approach, it results
in a far smoother experience. VSCode also uses fixed width for
completion menu.

Before:


https://github.com/user-attachments/assets/0f044bae-fae9-43dc-8d4a-d8e7be8be6c4

After:


https://github.com/user-attachments/assets/21ab475c-7331-4de3-bb01-3986182fc9e4

Release Notes:

- Fixed issue where code completion menu would flicker while typing.
```

## Parents

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

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