debt - move IPC handle methods into one place

This commit is contained in:
Benjamin Pasero
2020-10-12 14:51:18 +02:00
parent 69821795e8
commit 2b74e92476
6 changed files with 70 additions and 64 deletions

View File

@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { generateRandomPipeName } from 'vs/base/parts/ipc/node/ipc.net';
import { generateRandomIPCHandle } 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 = generateRandomPipeName();
this._ipcHandlePath = generateRandomIPCHandle();
try {
this._server.listen(this.ipcHandlePath);