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

Add support for system isolates to isolate selector while in VM developer mode #2947

Merged
merged 5 commits into from
Apr 28, 2021

Conversation

bkonyi
Copy link
Contributor

@bkonyi bkonyi commented Apr 27, 2021

  • Removed 'Isolate' from the isolate selector, replaced with 'forking' icon for isolates and 'gear' for system isolates.
  • Added tooltip for the isolate selector: 'Selected Isolate'.
  • Added 'No source available' path for CodeView.
  • Disable various debugger controls for system isolates.

Tooltip
Screen Shot 2021-04-27 at 12 33 58 PM

Isolates + system isolates with icons
Screen Shot 2021-04-27 at 12 34 07 PM

System isolate with source available
Screen Shot 2021-04-27 at 12 34 15 PM

System isolate with no source available
Screen Shot 2021-04-27 at 12 34 20 PM

…oper mode

- Removed 'Isolate' from the isolate selector, replaced with 'forking'
  icon for isolates and 'gear' for system isolates.
- Added tooltip for the isolate selector: 'Selected Isolate'.
- Added 'No source available' path for CodeView.
- Disable various debugger controls for system isolates.
@bkonyi bkonyi requested a review from kenzieschmoll April 27, 2021 19:42
packages/devtools_app/lib/src/debugger/codeview.dart Outdated Show resolved Hide resolved
packages/devtools_app/lib/src/debugger/controls.dart Outdated Show resolved Hide resolved
Comment on lines +459 to +461
if (selectedIsolate.isSystemIsolate && !vmDeveloperModeEnabled) {
selectIsolate(_isolates.first.id);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this also need to be called outside of the listener callback before _initIsolates(isolates) on l:464?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, this should only be necessary when we remove system isolates from the list of available isolates. This just makes sure that we change the selected isolate to one of the remaining isolates if we currently have a system isolate selected when VM developer mode is disabled.

@@ -250,6 +250,7 @@ class DebuggerController extends DisposableController
ValueListenable<List<ConsoleLine>> get stdio => _stdio;

IsolateRef isolateRef;
bool get isSystemIsolate => isolateRef.isSystemIsolate;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be isolateRef?.isSystemIsolate in case isolateRef is null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't hurt to be safe. When are we migrating to null safety again...? :-)

@bkonyi bkonyi merged commit 3fee03d into master Apr 28, 2021
@bkonyi bkonyi deleted the add_system_isolates_to_selector branch April 28, 2021 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants