Skip to content

Add hover explanations for captures and labels - #3286

Open
marcusw0 wants to merge 1 commit into
zigtools:masterfrom
marcusw0:feat/optional-capture-hover
Open

marcusw0 wants to merge 1 commit into
zigtools:masterfrom
marcusw0:feat/optional-capture-hover

Conversation

@marcusw0

Copy link
Copy Markdown

Adds explanations below the existing hover signature and type info for the following:

  • Optional and error union captures
  • Error captures
  • For loop captures
  • Switch payload and inline tag captures
  • Block and loop labels

Also has separate explanations for value captures and reference captures.

Refs #1174

Validation:

  • Added hover tests for the new explanations
  • Ran zig build test -Dtest-filter=hover --summary all and zig build test --summary all
  • Compiled with zig build -Doptimize=ReleaseSafe and using in my editor

The referenced issue has a broad idea for features like this. I'm not sure if this covers closing it, but I can keep working on more of these additions if not.

@marcusw0
marcusw0 force-pushed the feat/optional-capture-hover branch from c9f3372 to 79bb9b2 Compare October 19, 2026 22:40
@marcusw0
marcusw0 force-pushed the feat/optional-capture-hover branch from 79bb9b2 to 2b90e72 Compare October 20, 2026 22:54
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.

1 participant