Skip to content

include the body in function document symbol ranges#2648

Merged
Techatrix merged 1 commit intozigtools:masterfrom
xdBronch:fn-symbol
Mar 16, 2026
Merged

include the body in function document symbol ranges#2648
Techatrix merged 1 commit intozigtools:masterfrom
xdBronch:fn-symbol

Conversation

@xdBronch
Copy link
Contributor

zed uses documentSymbol for the outline/breadcrumbs, not including the body meant that it wouldnt show the function the cursor is inside.

Copy link
Member

@Techatrix Techatrix left a comment

Choose a reason for hiding this comment

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

Zed appears to use tree-sitter instead of LSP backed document symbols by default. Did you have to enable that manually? Would have been nice to mention that if it's the case.

@Techatrix Techatrix merged commit f963efb into zigtools:master Mar 16, 2026
6 checks passed
@xdBronch xdBronch deleted the fn-symbol branch March 16, 2026 14:52
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