File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,19 @@ class LiveSyncService implements ILiveSyncService {
45
45
public liveSync ( platform : string ) : IFuture < void > {
46
46
return ( ( ) => {
47
47
let liveSyncData : ILiveSyncData [ ] = [ ] ;
48
- this . $devicesService . initialize ( { skipInferPlatform : true } ) . wait ( ) ;
49
48
if ( platform ) {
49
+ this . $devicesService . initialize ( { platform : platform , deviceId : this . $options . device } ) . wait ( ) ;
50
50
liveSyncData . push ( this . prepareLiveSyncData ( platform ) ) ;
51
51
} else if ( this . $options . device ) {
52
+ this . $devicesService . initialize ( { platform : platform , deviceId : this . $options . device } ) . wait ( ) ;
52
53
platform = this . $devicesService . getDeviceByIdentifier ( this . $options . device ) . deviceInfo . platform ;
53
54
liveSyncData . push ( this . prepareLiveSyncData ( platform ) ) ;
54
55
} else {
56
+ this . $devicesService . initialize ( { skipInferPlatform : true } ) . wait ( ) ;
55
57
for ( let installedPlatform of this . $platformService . getInstalledPlatforms ( ) . wait ( ) ) {
58
+ if ( this . $devicesService . getDevicesForPlatform ( installedPlatform ) . length === 0 ) {
59
+ this . $devicesService . startEmulator ( installedPlatform ) . wait ( ) ;
60
+ }
56
61
liveSyncData . push ( this . prepareLiveSyncData ( installedPlatform ) ) ;
57
62
}
58
63
}
You can’t perform that action at this time.
0 commit comments