Skip to content

Conversation

@Blimster
Copy link
Contributor

Closes #12

Copilot AI review requested due to automatic review settings December 16, 2025 21:09
@cla-bot
Copy link

cla-bot bot commented Dec 16, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @Blimster on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@Blimster
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Dec 16, 2025
@cla-bot
Copy link

cla-bot bot commented Dec 16, 2025

The cla-bot has been summoned, and re-checked this pull request!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds tree-sitter queries to include top-level and instance variables in Zed's outline panel for Dart files. The changes aim to make more Dart code structures visible in the outline, improving navigation and code organization visibility.

  • Adds static_final_declaration query to capture static final variable declarations
  • Adds initialized_identifier query to capture initialized variables

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MrSubidubi MrSubidubi changed the title Add queries for top-level and instance variables in outline panel. Add queries for top-level and instance variables in outline panel Dec 20, 2025
Copy link
Contributor

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

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

Thanks for this! Could you please share a quick example/screenshot of what this adds to the outline panel? Thanks!

@Blimster
Copy link
Contributor Author

Blimster commented Jan 2, 2026

Hi @MrSubidubi,

Example:

final foo = 'bar';

class Foo {
  final String bar;

  Foo(this.bar);

  String getBar() => bar;
}

extension FooExtension on Foo {
  String getBar() => bar;
}

Outline panel before:

before

Outline panel after:

after

Copy link
Contributor

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

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

Nice, looks good! Thank you!

@MrSubidubi MrSubidubi merged commit 146966a into zed-extensions:main Jan 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Instance variables are not visible in Outline Panel

2 participants