From 8d81c30a7c0dacb6d3ddc7f04a96a8d5911ceae1 Mon Sep 17 00:00:00 2001 From: Ben Konyi Date: Mon, 8 Jul 2019 15:09:17 -0700 Subject: [PATCH] [WIP] Use public _registerService RPC --- packages/flutter_tools/lib/src/vmservice.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter_tools/lib/src/vmservice.dart b/packages/flutter_tools/lib/src/vmservice.dart index 31dd369709..b05aa2ddd0 100644 --- a/packages/flutter_tools/lib/src/vmservice.dart +++ b/packages/flutter_tools/lib/src/vmservice.dart @@ -140,7 +140,7 @@ class VMService { // If the Flutter Engine doesn't support service registration this will // have no effect - _peer.sendNotification('_registerService', { + _peer.sendNotification('registerService', { 'service': 'reloadSources', 'alias': 'Flutter Tools', }); @@ -166,7 +166,7 @@ class VMService { // If the Flutter Engine doesn't support service registration this will // have no effect - _peer.sendNotification('_registerService', { + _peer.sendNotification('registerService', { 'service': 'hotRestart', 'alias': 'Flutter Tools', }); @@ -204,7 +204,7 @@ class VMService { } }); - _peer.sendNotification('_registerService', { + _peer.sendNotification('registerService', { 'service': 'compileExpression', 'alias': 'Flutter Tools', });