Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
83ab5f83
Commit
83ab5f83
authored
Aug 18, 2016
by
John McCutchan
Committed by
GitHub
Aug 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call refreshViews after every restart (#5479)
parent
e683cb21
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+3
-1
resident_runner.dart
packages/flutter_tools/lib/src/resident_runner.dart
+6
-0
vmservice.dart
packages/flutter_tools/lib/src/vmservice.dart
+1
-0
No files found.
packages/flutter_tools/lib/src/commands/run.dart
View file @
83ab5f83
...
...
@@ -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
...
...
packages/flutter_tools/lib/src/resident_runner.dart
View file @
83ab5f83
...
...
@@ -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
();
}
...
...
packages/flutter_tools/lib/src/vmservice.dart
View file @
83ab5f83
...
...
@@ -886,6 +886,7 @@ class FlutterView extends ServiceObject {
packagesPath
,
assetsDirectoryPath
);
await
completer
.
future
;
await
owner
.
vm
.
refreshViews
();
await
subscription
.
cancel
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment