Skip to content

fix(hover): properly format container fields - #3323

Merged
techatrix merged 1 commit into
zigtools:masterfrom
neoto:hover-formatting
Dec 3, 2026
Merged

techatrix merged 1 commit into
zigtools:masterfrom
neoto:hover-formatting

Conversation

@neoto

@neoto neoto commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Fixes the weird staircase effect, or whatever you want to call it, where each consecutive row would print all the previous fields as well. One issue is that this doesn't work recursively, which sounds like a disgusting can of worms I do NOT want to open, but it's still better than status quo.

I moved a bunch of things into their own variables because I was losing my mind debugging before that. I think the code reads better like this anyway.

Resolves #3322

I spent half a day on this and I already need a(nother) vacation 🫩

@techatrix techatrix 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.

Found a small refactor but otherwise looks good to me.

Comment thread src/analysis.zig Resolved
Fixes the weird staircase effect, or whatever you want to call it, where each consecutive row would print all the previous fields as well. One issue is that this doesn't work recursively, which sounds like a disgusting can of worms I do NOT want to open, but it's still better than status quo.

Co-authored-by: Techatrix <techatrix@mailbox.org>

@techatrix techatrix 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.

Thank you

@techatrix
techatrix merged commit 91d8e9a into zigtools:master Dec 3, 2026
6 checks passed
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.

incorrect hover representation for unformatted single line enum tags

2 participants