Skip to content

Add inlay hints for unhandled optional results#1499

Merged
BradLewis merged 2 commits into
DanielGavin:masterfrom
thetarnav:inlay-hint-optional-result
May 30, 2026
Merged

Add inlay hints for unhandled optional results#1499
BradLewis merged 2 commits into
DanielGavin:masterfrom
thetarnav:inlay-hint-optional-result

Conversation

@thetarnav
Copy link
Copy Markdown
Contributor

Another useful inlay hint idea.
It adds a hint about missed optional result.
Right now it only works for proc calls with #optional_ok or #optional_allocator_error, so no map access or union casts.
Also only works on declarations and assignments as idk how to handle inline calls.

Copy link
Copy Markdown
Collaborator

@BradLewis BradLewis left a comment

Choose a reason for hiding this comment

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

Thanks!

@BradLewis BradLewis merged commit 933a5d6 into DanielGavin:master May 30, 2026
3 checks passed
@thetarnav thetarnav deleted the inlay-hint-optional-result branch May 31, 2026 19:25
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.

2 participants