-
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
[DDS] Add support for setting initial service extension values from DDS #44611
Comments
We can't just use dart environment variables to handle these cases because environment variables aren't supported on all Dart platforms we need to support. Another component of this FR could be codifying the flutter concept of boolean and string value service extensions that act like getter setter pairs in dart:developer. |
I'm not sure I'm clear on how we can issue service requests before the application starts up and starts advertising its VM service URI. DDS won't be started in any context until a VM service is available. Am I missing something here? |
Going through my backlog. Is this issue still relevant? |
This is still relevant. Flutter has adopted some good conventions for service extensions that get and set values that that should be promoted to See I think it would make sense to add helpers with exactly this bool, String, and num service extension behavior to |
A service extension may need to be called before an app starts up. From a tooling perspective, this is often to set an initial value for a service extension. For example, in DevTools currently, we have to queue these calls as pending, wait until the
Flutter.FirstFrame
event is received, and then issue all outstanding calls to service extensions.It would be ideal if DDS act as an intermediate layer to handle this use case. DDS could receive these calls, then manage executing the calls immediately on startup. This would avoid the problem of managing the race across tools. I am working on a feature in flutter tools currently that likely will also run into this race issue, where I need to set the value of a service extension but will have to make sure the device has started up.
@bkonyi @jacob314
The text was updated successfully, but these errors were encountered: