# lsp colors: Reduce flickering while typing \(\#40055\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3f3d894c8b0e9b33c2ff3b577083cb606830547e

Requested commit: 3f3d894c8b0e9b33c2ff3b577083cb606830547e

Commit: 3f3d894c8b0e9b33c2ff3b577083cb606830547e

Tree: 5851cabdfcba1bcb4fec8ed8d6fc20b491a840fa

Author: Remco Smits

Committer: GitHub

## Message

```
lsp colors: Reduce flickering while typing (#40055)

Closes #40019

Follow-up https://github.com/zed-industries/zed/pull/40025

This PR reduces/removes the flickering of inlay colors. This is done by
adding a debounce, and not detaching the task that fetches the new
colors.

**Result**


https://github.com/user-attachments/assets/5dae278b-b821-4e64-8adb-c4d8376ba1df

Release Notes:

- Lsp colors: Reduce flickering while typing.

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
```

## Parents

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

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