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

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

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

Visibility: public

Requested revision: 46544d7354653d93cd847b74e31da47312e7ba40

Requested commit: 46544d7354653d93cd847b74e31da47312e7ba40

Commit: 46544d7354653d93cd847b74e31da47312e7ba40

Tree: cbdb2caabc825adcaae3ee5dc5498136b29b89d0

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Revert PR #8327 - Fix autocomplete completions being cut in half (#10084)

This reverts https://github.com/zed-industries/zed/pull/8327

That PR introduced a regression where completions' syntax highlighting
would be corrupted in a non-deterministic way, such that it varied from
frame to frame:

In the screenshot below, many of the field names (e.g. `cursor`,
`depth`) are incorrectly colored as types instead of fields. The
`finished_states` field has highlighting that changes at the wrong
offset. All of these values changed from frame to frame, creating a
strange flickering effect:

<img width="599" alt="Screenshot 2024-04-01 at 5 56 36 PM"
src="https://github.com/zed-industries/zed/assets/326587/b6a48f02-f146-4f76-92e6-32fb417d86c0">

Release Notes:

- N/A
```

## Parents

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

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