Skip to content
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

Widget inspector should operate on main isolate, not selected isolate #6434

Merged
merged 9 commits into from Sep 25, 2023
Expand Up @@ -22,7 +22,7 @@ DevTools extension for your pub package, see the getting started guide for

## Inspector updates

TODO: Remove this section if there are not any general updates.
* Fixed bug where inspector service calls were done on the selected isolate, instead of the main isolate - [#6434](https://github.com/flutter/devtools/pull/6434)

## Performance updates

Expand Down
Expand Up @@ -45,7 +45,7 @@ class EvalOnDartLibrary extends DisposableController
_libraryRef = Completer<LibraryRef>();

// For evals in tests, we will pass the isolateId into the constructor.
isolate ??= serviceManager.isolateManager.selectedIsolate;
isolate ??= serviceManager.isolateManager.mainIsolate;
CoderDake marked this conversation as resolved.
Show resolved Hide resolved
addAutoDisposeListener(isolate, () => _init(isolate!.value));
_init(isolate.value);
}
Expand Down