Commit 83ab5f83 authored by John McCutchan's avatar John McCutchan Committed by GitHub

Call refreshViews after every restart (#5479)

parent e683cb21
......@@ -70,7 +70,9 @@ class RunCommand extends RunCommandBase {
// Option to write the pid to a file.
argParser.addOption('pid-file',
help: 'Specify a file to write the process id to.');
help: 'Specify a file to write the process id to.'
'You can send SIGUSR1 to trigger a hot reload '
'and SIGUSR2 to trigger a full restart.');
// Hidden option to enable a benchmarking mode. This will run the given
......
......@@ -47,10 +47,16 @@ abstract class ResidentRunner {
}
Future<Null> _debugDumpApp() async {
if (vmService != null)
await vmService.vm.refreshViews();
await currentView.uiIsolate.flutterDebugDumpApp();
}
Future<Null> _debugDumpRenderTree() async {
if (vmService != null)
await vmService.vm.refreshViews();
await currentView.uiIsolate.flutterDebugDumpRenderTree();
}
......
......@@ -886,6 +886,7 @@ class FlutterView extends ServiceObject {
packagesPath,
assetsDirectoryPath);
await completer.future;
await owner.vm.refreshViews();
await subscription.cancel();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment