-
Notifications
You must be signed in to change notification settings - Fork 323
Find All References
doesn't work with class declaration
#4668
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
Comments
I think this might be the same as #4619. Does it only occur if you put the cursor at the end of the name, or have selected the whole class name (such as by double-clicking)? If you right click in the name without selecting it, does it work? If so, we can close this as a dupe of #4619 and it'll be fixed by https://dart-review.googlesource.com/c/sdk/+/316223. Otherwise, can you capture a log when reproduce this, as I can only repro the issue above. Could you try capturing debugging logs while reproducing this?
Thanks! |
Actually, I think that fix only does Definition, not references - this might be a similar issue in different code. |
Got a fix at https://dart-review.googlesource.com/c/sdk/+/317080 |
…e name and generic type parameters Fixes Dart-Code/Dart-Code#4668 Change-Id: Ibdb45b5c09ab8de0746239e351b5e581af4bb7df Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/317080 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
@DanTup OK, so just so that I understand -- you are able to replicate this now, hence the fix? Do I need to follow the repro+logging steps you requested a few comments ago, or are you confident you found and fixed it? |
@lukehutch if the only issue you can reproduce is when the text cursor is just before the If you see issues when the text cursor is in other parts of the name, then a log would be useful. Thanks! |
@DanTup Yes, it looks like the issue is only when the cursor is right before |
Sorry, not sure if I should have closed this before your patch was merged -- feel free to reopen if needed. |
Cool, thanks for confirming. Yep, will keep this open as a reminder until it's merged. Thanks! |
Actually, the fix had already been merged before this was closed 🙃 dart-lang/sdk@8abaa7b |
Describe the bug
Given this class
(and assuming that the class is used throughout my project,) if I select
ProfileItem
on the first line and then right-click and choose "Find All References", nothing is found. If I selectProfileItem
on the second line (in the constructor definition) and then right-click and choose "Find All References", dart-code is able to find numerous references to the class.To Reproduce
As above.
Expected behavior
Any reference to
ProfileItem
should correctly find all references. The syntax highlighter does highlight both references when I click on one of them.Please complete the following information:
The text was updated successfully, but these errors were encountered: