mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-23 15:24:20 +01:00
@@ -260,7 +260,7 @@ export class TerminalProcess extends Disposable implements ITerminalChildProcess
|
||||
return;
|
||||
}
|
||||
this._logService.trace('IPty#pid');
|
||||
exec('lsof -p ' + this._ptyProcess.pid + ' | grep cwd', (error, stdout, stderr) => {
|
||||
exec('lsof -OPl -p ' + this._ptyProcess.pid + ' | grep cwd', (error, stdout, stderr) => {
|
||||
if (stdout !== '') {
|
||||
resolve(stdout.substring(stdout.indexOf('/'), stdout.length - 1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user