-
Notifications
You must be signed in to change notification settings - Fork 21
Add queries for top-level and instance variables in outline panel #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
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'. |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
There was a problem hiding this 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_declarationquery to capture static final variable declarations - Adds
initialized_identifierquery to capture initialized variables
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
MrSubidubi
left a comment
There was a problem hiding this 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!
|
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:
Outline panel after:
|
MrSubidubi
left a comment
There was a problem hiding this 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!


Closes #12