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
75dc45ab
Unverified
Commit
75dc45ab
authored
Jan 21, 2021
by
Kenzie Schmoll
Committed by
GitHub
Jan 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bugs with ext.flutter.activeDevToolsServerAddress (#74423)
parent
444c954f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
resident_runner.dart
packages/flutter_tools/lib/src/resident_runner.dart
+8
-2
run_hot.dart
packages/flutter_tools/lib/src/run_hot.dart
+1
-0
No files found.
packages/flutter_tools/lib/src/resident_runner.dart
View file @
75dc45ab
...
...
@@ -1420,9 +1420,15 @@ abstract class ResidentRunner {
}
on
Exception
{
// do nothing
}
vmService
.
onExtensionEvent
.
listen
((
vm_service
.
Event
event
)
{
StreamSubscription
<
vm_service
.
Event
>
extensionStream
;
extensionStream
=
vmService
.
onExtensionEvent
.
listen
((
vm_service
.
Event
event
)
{
if
(
event
.
json
[
'extensionKind'
]
==
'Flutter.FrameworkInitialization'
)
{
// The 'Flutter.FrameworkInitialization' event is sent on hot restart
// as well, so make sure we don't try to complete this twice.
if
(!
completer
.
isCompleted
)
{
completer
.
complete
();
extensionStream
.
cancel
();
}
}
});
final
vm_service
.
IsolateRef
isolateRef
=
(
await
vmService
.
getVM
()).
isolates
.
first
;
...
...
packages/flutter_tools/lib/src/run_hot.dart
View file @
75dc45ab
...
...
@@ -634,6 +634,7 @@ class HotRunner extends ResidentRunner {
if
(!
silent
)
{
globals
.
printStatus
(
'Restarted application in
${getElapsedAsMilliseconds(timer.elapsed)}
.'
);
}
unawaited
(
maybeCallDevToolsUriServiceExtension
());
return
result
;
}
final
OperationResult
result
=
await
_hotReloadHelper
(
...
...
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