ZIm/docs/src
Kirill Bulatov 5ae93ce68d
Add initial inline diagnostics support (#25297)
https://github.com/user-attachments/assets/eb881707-e575-47ef-9ae0-67d8085d8065

Closes https://github.com/zed-industries/zed/pull/22668
Closes https://github.com/zed-industries/zed/issues/4901

Takes https://github.com/zed-industries/zed/pull/22668 and fixes all
review items on top.
Inline diagnostics are disabled by default, but can be enabled via
settings permanently, or temporarily toggled with the `editor:
ToggleInlineDiagnostics` action and the corresponding editor menu item
<img width="242" alt="image"
src="https://github.com/user-attachments/assets/8e177511-4626-4434-902b-d6aa4d3fafd0"
/>

Inline diagnostics does not show currently active diagnostics group, as
it gets inline into the editor too, inside the text.
Inline git blame takes precedence and is shown instead of the
diagnostics, edit predictions dim the diagnostics if located on the same
line.

One notable drawback of the implementation is the inability to wrap,
making inline diagnostics cut off the right side:


![image](https://github.com/user-attachments/assets/6e87268a-b51a-4a2b-8b8d-01d932c62fea)

(same as inline git blame and other elements to the right of the text)
Given that it's disabled by default and go to next/prev diagnostics will
show them better, seems fine to leave in the first iteration.


Release Notes:

- Added initial inline diagnostics support

---------

Co-authored-by: Paul J. Davis <paul.davis@tiledb.com>
Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
2025-02-20 23:39:47 +00:00
..
assistant docs: OpenAI settings example fix (#25112) 2025-02-19 11:05:52 -05:00
development Revert "docs: Update msys2 section (#24942)" (#24958) 2025-02-15 18:52:10 +00:00
extensions docs: Update icon theme docs with file_stems and file_suffixes (#24929) 2025-02-15 01:58:19 +00:00
languages Fix link to the PHP extension (#25144) 2025-02-19 11:10:10 +00:00
additional-learning-materials.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
channels.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
collaboration.md Clarify guests vs collaborators in project sharing docs (#22945) 2025-01-10 15:42:52 +00:00
completions.md docs: Add link to Zeta's Hugging Face profile (#24915) 2025-02-14 22:58:46 +00:00
configuring-languages.md Add per-language settings show_completions_on_input and show_completion_documentation (#21722) 2024-12-09 11:53:50 -07:00
configuring-zed.md Add initial inline diagnostics support (#25297) 2025-02-20 23:39:47 +00:00
development.md Use the development credentials provider in development by default (#25273) 2025-02-20 19:07:16 +00:00
environment.md docs: Fix typo in environment documentation (#19164) 2024-10-13 16:47:09 -04:00
extensions.md docs: Add docs for icon theme extensions (#24155) 2025-02-04 00:23:33 +00:00
fonts.md Fix casing of "macOS" (#17040) 2024-08-28 19:10:49 -04:00
getting-started.md docs: Improve the Getting Started page (#22545) 2025-01-01 17:19:10 +00:00
git.md docs: Update names of supported Git providers (#17436) 2024-09-05 13:42:49 -04:00
globs.md Glob documentation (#18789) 2024-10-15 17:21:04 -04:00
icon-themes.md icon_theme_selector: Add footer and related docs (#25042) 2025-02-20 00:02:24 +00:00
key-bindings.md Migrate keymap and settings + edit predictions rename (#23834) 2025-02-07 21:17:07 +05:30
languages.md docs: Fix broken link for the Odin language (#23421) 2025-01-21 14:20:54 -05:00
linux.md docs: Mention PopOS 24.04 in Linux FAQ for /etc/prime-discrete (#23482) 2025-01-22 19:37:04 +00:00
model-improvement.md docs: Remove GitHub link from model improvement (#25171) 2025-02-19 16:22:13 +00:00
multibuffers.md Fix a typo in the multi buffers documentation (#18535) 2024-09-30 15:28:46 +03:00
outline-panel.md docs: Add tweaks to the outline panel page (#18697) 2024-10-03 12:27:42 -03:00
remote-development.md Add SSH port forwards to settings (#24474) 2025-02-14 14:52:24 -07:00
repl.md docs: Add tweaks to the REPL page (#18000) 2024-09-18 07:34:39 -03:00
snippets.md Add minimal snippets documentation (#14992) 2024-07-22 21:18:39 -04:00
SUMMARY.md icon_theme_selector: Add footer and related docs (#25042) 2025-02-20 00:02:24 +00:00
system-requirements.md Update macOS system requirements in docs (#22248) 2024-12-19 17:55:46 +00:00
tasks.md Fix up tasks documentation (#24991) 2025-02-17 01:03:29 +00:00
telemetry.md Stop sending data to Clickhouse (#21763) 2024-12-10 08:47:29 -07:00
themes.md docs: Example theme_overrides for docstrings as italic (#19694) 2024-10-24 14:37:57 -04:00
vim.md Revert "Fix issue with vim::PushOperator documentation (#24825)" (#24989) 2025-02-16 23:51:27 +00:00
windows.md Fix stale Discord invite links (#21074) 2024-11-22 21:10:51 +00:00
workspace-persistence.md Update workspace persistence doc (#25271) 2025-02-20 12:51:56 -05:00