Skip to content

Improve outline support#82

Merged
notpeter merged 3 commits intonathansbradshaw:mainfrom
pmig:fix/outline-query
Feb 25, 2026
Merged

Improve outline support#82
notpeter merged 3 commits intonathansbradshaw:mainfrom
pmig:fix/outline-query

Conversation

@pmig
Copy link
Contributor

@pmig pmig commented Feb 25, 2026

This actually a series a fixes to make that extension work again. You can try out the extension locally over at https://github.com/pmig/zed-angular. Although most of the code was written by claude, I (@pmig) manually reviewed and tested it.

Summary

  • Zed requires @item and @name captures in outline.scm queries
  • The existing query only had @annotation for comments, causing:
    ERROR [language] missing required capture(s) in Angular outline TreeSitter query: item, name
  • Adds element/start_tag/tag_name pattern matching the HTML extension's approach to provide document outline for Angular templates

Zed requires @item and @name captures in outline.scm queries. The
existing query only had @annotation for comments, causing an error:
"missing required capture(s) in Angular outline TreeSitter query: item, name"

Add element/start_tag/tag_name pattern matching the HTML extension's
approach to provide document outline for Angular templates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 25, 2026 13:18

This comment was marked as resolved.

notpeter and others added 2 commits February 25, 2026 09:58
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Collaborator

@notpeter notpeter left a comment

Choose a reason for hiding this comment

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

Tested and worked for me.

@notpeter notpeter changed the title fix: add required captures to outline query Improve outline support Feb 25, 2026
@notpeter notpeter merged commit cd9721a into nathansbradshaw:main Feb 25, 2026
1 check 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.

3 participants