You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"part of" declarations do not support file links #3970
Is your feature request related to a problem? Please describe.
Most declarations that reference other files (ex. import, part) support command-clicking the path to jump to that file. This currently does not work for part of. This is even weirder since it's supported in part, so you can nav to the part, but not back from it.
Describe the solution you'd like
Cmd-clicking the path (ex. "file_name.dart" below) in a part of statement should jump to that file.
Btw, I don't know the details but on this page it recommends:
Note: You may have heard of the part directive, which allows you to split a library into multiple Dart files. We recommend that you avoid using part and create mini libraries instead.
It's not a reason not to report/fix issues with part, but I thought it was worth noting. Thanks!
Fixed in dart-lang/sdk@2591ed8. Since the change is in the analysis server, it will show up in an SDK release (rather than a VS Code extension release).
Activity
DanTup commentedon May 23, 2022
Working on a fix at https://dart-review.googlesource.com/c/sdk/+/245701/.
Btw, I don't know the details but on this page it recommends:
It's not a reason not to report/fix issues with
part, but I thought it was worth noting. Thanks![analysis_server] Handle navigation for "part of"s using URIs
DanTup commentedon May 24, 2022
Fixed in dart-lang/sdk@2591ed8. Since the change is in the analysis server, it will show up in an SDK release (rather than a VS Code extension release).