ZIm/crates/diagnostics/src
Kirill Bulatov f46957584f
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
2025-06-17 13:46:21 +00:00
..
diagnostic_renderer.rs Use read-only access methods for read-only entity operations (#31479) 2025-05-26 23:04:31 -04:00
diagnostics.rs Don't autosave unmodified buffers (#32626) 2025-06-12 22:12:14 +00:00
diagnostics_tests.rs Show inline previews for LSP document colors (#32816) 2025-06-17 13:46:21 +00:00
items.rs Allow to hide more buttons with the settings (#30565) 2025-05-12 13:34:52 +00:00
toolbar_controls.rs Use rust-analyzer's flycheck as source of cargo diagnostics (#29779) 2025-05-02 10:07:51 +03:00