Skip to content

Commit d9f2b16

Browse files
committed
Renamings
1 parent 13bc669 commit d9f2b16

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/debug-adapter/connection/iosConnection.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import * as ns from '../../services/NsCliService';
1313
interface IMessageWithId {
1414
id: number;
1515
method: string;
16-
params?: string[];
16+
params?: any;
1717
}
1818

1919
export class PacketStream extends stream.Transform {
@@ -148,8 +148,8 @@ export class IosConnection implements INSDebugConnection {
148148
this._socket = new ResReqTcpSocket();
149149
}
150150

151-
public on(eventName: string, handler: (msg: any) => void): void {
152-
this._socket.on(eventName, handler);
151+
public on(eventName: string, eventHandler: (eventParams: any) => void): void {
152+
this._socket.on(eventName, eventHandler);
153153
}
154154

155155
/**
@@ -223,11 +223,11 @@ export class IosConnection implements INSDebugConnection {
223223
return this.sendMessage('Runtime.evaluate', <WebKitProtocol.Runtime.EvaluateParams>{ expression, objectGroup, contextId, returnByValue });
224224
}
225225

226-
private sendMessage(method: any, params?: any): Promise<WebKitProtocol.Response> {
226+
private sendMessage(method: string, params?: any): Promise<WebKitProtocol.Response> {
227227
return this._socket.sendMessage({
228228
id: this._nextId++,
229-
method,
230-
params
229+
method: method,
230+
params: params
231231
});
232232
}
233233
}

src/services/ipc/ExtensionServer.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as path from 'path';
22
import * as os from 'os';
33
import * as crypto from 'crypto';
4-
import * as fs from 'fs';
54
import * as vscode from 'vscode';
65
import * as extProtocol from './ExtensionProtocol';
76
import {AnalyticsService} from '../analytics/AnalyticsService';

0 commit comments

Comments
 (0)