-
Notifications
You must be signed in to change notification settings - Fork 336
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
Conversation
…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.
if (selectedIsolate.isSystemIsolate && !vmDeveloperModeEnabled) { | ||
selectIsolate(_isolates.first.id); | ||
} |
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.
does this also need to be called outside of the listener callback before _initIsolates(isolates) on l:464?
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.
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; |
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.
should this be isolateRef?.isSystemIsolate in case isolateRef is null?
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.
Doesn't hurt to be safe. When are we migrating to null safety again...? :-)
Tooltip
Isolates + system isolates with icons
System isolate with source available
System isolate with no source available