-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Provide a way of getting a map supporting lookup from packageName to Uri #24022
Comments
For completeness, what would the getter return? |
Personally, I'd prefer it return the URI of the package spec file if one was used for the current isolate (or maybe for the VM as a whole?). That doesn't exactly match the behavior of |
Punting to 1.13 based on prioritization in #23372 |
cc @iposva-google who I think is looking into this. |
👍 |
This has been rolled back, so I'm re-opening. Also, the new name for this property is |
I believe this has landed |
This hasn't landed yet; the new APIs don't include a map, just a function to do the lookup, which isn't what we asked for. @mit-mit can you reopen? |
"Personally, I'd prefer it return the URI of the package spec file if one was used for the current isolate" is exactly what you asked for and getting with Isolate.packageConfig. Keeping closed. |
I'm sorry, you're right. I'll file a separate issue for the map. |
By analogy with
Platform.packageRoot
. This is useful for ensuring that spawned tools like the analyzer or the VM run in the same package context as the current process./cc @davidmorgan
The text was updated successfully, but these errors were encountered: