@@ -71,8 +71,7 @@ export class IOSDeviceLiveSyncService extends DeviceLiveSyncServiceBase implemen
71
71
}
72
72
73
73
if ( await this . setupSocketIfNeeded ( projectData ) ) {
74
- await this . liveEdit ( scriptFiles ) ;
75
- await this . reloadPage ( deviceAppData , otherFiles ) ;
74
+ await this . reloadPage ( otherFiles ) ;
76
75
} else {
77
76
await this . restartApplication ( deviceAppData , projectData . projectName ) ;
78
77
}
@@ -82,7 +81,7 @@ export class IOSDeviceLiveSyncService extends DeviceLiveSyncServiceBase implemen
82
81
return this . device . applicationManager . restartApplication ( { appId : deviceAppData . appIdentifier , projectName } ) ;
83
82
}
84
83
85
- private async reloadPage ( deviceAppData : Mobile . IDeviceAppData , localToDevicePaths : Mobile . ILocalToDevicePathData [ ] ) : Promise < void > {
84
+ private async reloadPage ( localToDevicePaths : Mobile . ILocalToDevicePathData [ ] ) : Promise < void > {
86
85
if ( localToDevicePaths . length ) {
87
86
const message = JSON . stringify ( {
88
87
method : "Page.reload" ,
@@ -96,22 +95,6 @@ export class IOSDeviceLiveSyncService extends DeviceLiveSyncServiceBase implemen
96
95
}
97
96
}
98
97
99
- private async liveEdit ( localToDevicePaths : Mobile . ILocalToDevicePathData [ ] ) : Promise < void > {
100
- for ( const localToDevicePath of localToDevicePaths ) {
101
- const content = this . $fs . readText ( localToDevicePath . getLocalPath ( ) ) ;
102
- const message = JSON . stringify ( {
103
- method : "Debugger.setScriptSource" ,
104
- params : {
105
- scriptUrl : localToDevicePath . getRelativeToProjectBasePath ( ) ,
106
- scriptSource : content
107
- } ,
108
- id : ++ currentPageReloadId
109
- } ) ;
110
-
111
- await this . sendMessage ( message ) ;
112
- }
113
- }
114
-
115
98
private attachEventHandlers ( ) : void {
116
99
this . $processService . attachToProcessExitSignals ( this , this . destroySocket ) ;
117
100
0 commit comments