# Show inline previews for LSP document colors \(\#32816\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f46957584fdc4303eac44798dd82323ede26ee93

Requested commit: f46957584fdc4303eac44798dd82323ede26ee93

Commit: f46957584fdc4303eac44798dd82323ede26ee93

Tree: 53e7aef322e9608a115b3493ebc8b70e15c8cfab

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Show inline previews for LSP document colors (#32816)

https://github.com/user-attachments/assets/ad0fa304-e4fb-4598-877d-c02141f35d6f

Closes https://github.com/zed-industries/zed/issues/4678

Also adds the code to support `textDocument/colorPresentation`
counterpart that serves as a resolve mechanism for the document colors.
The resolve itself is not run though, and the editor does not
accommodate color presentations in the editor yet — until a well
described use case is provided.

Use `lsp_document_colors` editor settings to alter the presentation and
turn the feature off.

Release Notes:

- Start showing inline previews for LSP document colors
```

## Parents

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

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