Skip to content

Commit 979600d

Browse files
committed
Use IiOSSimulatorService in ios-debug-service
1 parent c588eaf commit 979600d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/services/ios-debug-service.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import iOSProxyServices = require("./../common/mobile/ios/ios-proxy-services");
22
import iOSDevice = require("./../common/mobile/ios/ios-device");
3-
import iOSEmulatorService = require("./../common/mobile/ios/ios-emulator-services");
43
import net = require("net");
54
import ws = require("ws");
65
import stream = require("stream");
@@ -45,7 +44,7 @@ function connectEventually(factory: () => net.Socket, handler: (socket: net.Sock
4544
class IOSDebugService implements IDebugService {
4645
constructor(
4746
private $platformService: IPlatformService,
48-
private $iOSEmulatorServices: iOSEmulatorService,
47+
private $iOSEmulatorServices: Mobile.IEmulatorPlatformServices,
4948
private $devicesServices: Mobile.IDevicesServices,
5049
private $platformsData: IPlatformsData,
5150
private $projectData: IProjectData,
@@ -102,7 +101,9 @@ class IOSDebugService implements IDebugService {
102101
this.executeOpenDebuggerClient().wait();
103102
var projectId = this.$projectData.projectId;
104103
var attachRequestMessage = notification.attachRequest(projectId);
105-
this.$iOSEmulatorServices.postDarwinNotification(attachRequestMessage).wait();
104+
105+
var iOSEmulator = <Mobile.IiOSSimulatorService>this.$iOSEmulatorServices;
106+
iOSEmulator.postDarwinNotification(attachRequestMessage).wait();
106107
}).future<void>()();
107108
}
108109

0 commit comments

Comments
 (0)