Clean up terminal cwd handling

This commit is contained in:
Daniel Imms
2019-01-28 06:01:56 -08:00
parent 8846757657
commit e384ca7461
4 changed files with 21 additions and 38 deletions

View File

@@ -214,14 +214,8 @@ export class MainThreadTerminalService implements MainThreadTerminalServiceShape
request.proxy.onInput(data => this._proxy.$acceptProcessInput(request.proxy.terminalId, data));
request.proxy.onResize(dimensions => this._proxy.$acceptProcessResize(request.proxy.terminalId, dimensions.cols, dimensions.rows));
request.proxy.onShutdown(immediate => this._proxy.$acceptProcessShutdown(request.proxy.terminalId, immediate));
request.proxy.onRequestCwd(() => {
console.log('onRequestCwd', request.proxy.terminalId);
this._proxy.$acceptProcessRequestCwd(request.proxy.terminalId);
});
request.proxy.onRequestInitialCwd(() => {
console.log('onRequestInitialCwd', request.proxy.terminalId);
this._proxy.$acceptProcessRequestInitialCwd(request.proxy.terminalId);
});
request.proxy.onRequestCwd(() => this._proxy.$acceptProcessRequestCwd(request.proxy.terminalId));
request.proxy.onRequestInitialCwd(() => this._proxy.$acceptProcessRequestInitialCwd(request.proxy.terminalId));
}
public $sendProcessTitle(terminalId: number, title: string): void {