mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
git: isolate ipc env
This commit is contained in:
@@ -7,7 +7,17 @@ import * as http from 'http';
|
||||
|
||||
export class IPCClient {
|
||||
|
||||
constructor(private handlerName: string, private ipcHandlePath: string) { }
|
||||
private ipcHandlePath: string;
|
||||
|
||||
constructor(private handlerName: string) {
|
||||
const ipcHandlePath = process.env['VSCODE_GIT_IPC_HANDLE'];
|
||||
|
||||
if (!ipcHandlePath) {
|
||||
throw new Error('Missing VSCODE_GIT_IPC_HANDLE');
|
||||
}
|
||||
|
||||
this.ipcHandlePath = ipcHandlePath;
|
||||
}
|
||||
|
||||
call(request: any): Promise<any> {
|
||||
const opts: http.RequestOptions = {
|
||||
|
||||
Reference in New Issue
Block a user