ipc - rename methods and add tests

This commit is contained in:
Benjamin Pasero
2020-10-12 15:57:25 +02:00
parent 588b6cc57d
commit 50f479b165
6 changed files with 54 additions and 14 deletions

View File

@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { generateRandomIPCHandle } from 'vs/base/parts/ipc/node/ipc.net';
import { createRandomIPCHandle } from 'vs/base/parts/ipc/node/ipc.net';
import * as http from 'http';
import * as fs from 'fs';
import { IExtHostCommands } from 'vs/workbench/api/common/extHostCommands';
@@ -52,7 +52,7 @@ export class CLIServer {
}
private async setup(): Promise<string> {
this._ipcHandlePath = generateRandomIPCHandle();
this._ipcHandlePath = createRandomIPCHandle();
try {
this._server.listen(this.ipcHandlePath);