Skip to content

feat: support notes for diagnostics#124

Merged
camc314 merged 4 commits into
oxc-project:mainfrom
spanishpear:ssomaiya/17443-add-note
Jan 4, 2026
Merged

feat: support notes for diagnostics#124
camc314 merged 4 commits into
oxc-project:mainfrom
spanishpear:ssomaiya/17443-add-note

Conversation

@spanishpear

Copy link
Copy Markdown
Contributor

This PR

  • adds basic boilerplate + support for a new note field on diagnostic

Notes

  • No support for derives yet (e.g. #[diagnostic(note = "...")] or #[note("...")] on a field) - will do that afterwards

Needed for oxc-project/oxc#17443

Disclaimer, AI was used for generating tests for the changes, given the existing tests in the repo.

Comment thread src/handlers/graphical.rs Outdated
Comment thread src/handlers/theme.rs
@spanishpear

Copy link
Copy Markdown
Contributor Author

@Boshen When you get a moment, could I get CI perms? 😁 Thanks!

Happy new year!

@Boshen Boshen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. You can use github ref in your Oxc PR first, we'll merge and release this after everything works.

@camc314 camc314 changed the title feat: expose option for new 'note' diagnostic. feat: support notes for diagnostics Jan 4, 2026
@camc314
camc314 merged commit 60284b5 into oxc-project:main Jan 4, 2026
12 checks passed
@Boshen Boshen mentioned this pull request Jan 4, 2026
camc314 pushed a commit to oxc-project/oxc that referenced this pull request Jan 5, 2026
Consumes miette changes in
oxc-project/oxc-miette#124 for
#17443

For now, simple `note` field with appropriate `note()` and `with_note()`
helpers

---------

Signed-off-by: Shrey Sudhir <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants