mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Merge pull request #157377 from pingren/fix/terminal-cwd-unicode
Add env for terminalProcess getCwd Unicode path on macOS
This commit is contained in:
commit
28c025e45d
|
@ -583,7 +583,7 @@ export class TerminalProcess extends Disposable implements ITerminalChildProcess
|
|||
return;
|
||||
}
|
||||
this._logService.trace('IPty#pid');
|
||||
exec('lsof -OPln -p ' + this._ptyProcess.pid + ' | grep cwd', (error, stdout, stderr) => {
|
||||
exec('lsof -OPln -p ' + this._ptyProcess.pid + ' | grep cwd', { env: { ...process.env, LANG: 'en_US.UTF-8' } }, (error, stdout, stderr) => {
|
||||
if (!error && stdout !== '') {
|
||||
resolve(stdout.substring(stdout.indexOf('/'), stdout.length - 1));
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue