# Fix autocomplete completions being cut in half \(\#8327\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6e49a2460eb97ba18e68a062a62512b8237ff725

Requested commit: 6e49a2460eb97ba18e68a062a62512b8237ff725

Commit: 6e49a2460eb97ba18e68a062a62512b8237ff725

Tree: 8001e15e05b6e6e3f7a0d258b735a690a67e5824

Author: Ephram

Committer: GitHub

## Message

```
Fix autocomplete completions being cut in half (#8327)

Release Notes:

- Fixed LSP completions being cut in half
([#8126](https://github.com/zed-industries/zed/issues/8126)).

Previously, autocomplete suggestions were covered by autocomplete
documentation, which only appeared after a short delay.

Now, when an autocomplete suggestion is too long to fit, the name is
truncated with ellipses like how VSCode does it:

![image](https://github.com/zed-industries/zed/assets/50590465/bf3c6271-7d7a-44b1-ab76-647df5620fcd)

Additionally `completion_documentation_secondary_query_debounce`'s
default was changed from 300ms to 0ms, which makes the editor feel
significantly faster (in my opinion).

Before:


https://github.com/zed-industries/zed/assets/50590465/6443670b-fe25-4428-9a39-54405d9a7cec

After:


https://github.com/zed-industries/zed/assets/50590465/72572487-3eb4-4a96-a2f9-608e563a1f05

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
```

## Parents

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

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