Repository navigation
Conversation
This was referenced Sep 10, 2026
This was referenced Sep 11, 2026
zanieb
force-pushed
the
zb/rich-diagnostic-sources-20260910
branch
from
September 11, 2026 02:15
9c4f1c2 to
030879f
Compare
This was referenced Sep 11, 2026
zanieb
force-pushed
the
zb/rich-diagnostic-sources-20260910
branch
from
September 22, 2026 20:01
030879f to
376e171
Compare
zanieb
changed the base branch from
zb/rich-diagnostic-source-overrides-20260910
to
zb/rich-diagnostics-notes-20260910
September 22, 2026 20:11
zanieb
force-pushed
the
zb/rich-diagnostic-sources-20260910
branch
from
September 22, 2026 20:26
376e171 to
7648e8a
Compare
zanieb
force-pushed
the
zb/rich-diagnostic-sources-20260910
branch
from
September 22, 2026 21:12
7648e8a to
19211f8
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The source renderer supports a single parser location but cannot express related locations or annotations on informational context. Extend retained source files into a shared byte-range annotation model for
DiagnosticandInfo, rendered throughannotate-snippets. The renderer validates UTF-8 boundaries, shows annotated lines by default, and falls back to a file location when a range is unavailable or invalid. Existing TOML diagnostics retain their first-line excerpt limit, and formatting never rereads the input.Builds on astral-sh#21604 and the design in #1362.