-
Notifications
You must be signed in to change notification settings - Fork 83
Implement lookupResolvedPackageUris and lookupPackageUris #1458
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
Implement lookupResolvedPackageUris and lookupPackageUris #1458
Conversation
- implement the new API from vm service 7.4.0 - add tests - does not suport dart: scheme uris yet: dart-lang#1457 Closes: dart-lang#1446
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.
LGTM with one 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.
LGTM!
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.
Updated changes LGTM (sorry for the delay, was OOO)
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.
LGTM
/// The way we resolve file: URLs into package: URLs | ||
static PackageConfig _packageConfig; | ||
|
||
/// The way we resolve dart: URLs into org-dartland-sdk: URLs |
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.
dartland -> dartlang?
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!
containsAll([ | ||
contains('/_test/example/hello_world/main.dart'), | ||
contains('/lib/path.dart'), | ||
contains('/lib/src/path_set.dart'), | ||
])); |
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.
I'm a little confused why expectation needs containsAll()
with nested contains()
. Is that on purpose?
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.
containsAll matches the array, and the nested contains match the elements. I like that our matches allow that!
lookupResolvedPackageUris and lookupPackageUris do not handle uris with dart scheme #1457
Closes: #1446