We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f22fd8e + b4eb7c9 commit 2da39bdCopy full SHA for 2da39bd
src/vs/platform/terminal/node/terminalProcess.ts
@@ -401,7 +401,8 @@ export class TerminalProcess extends Disposable implements ITerminalChildProcess
401
if (this._store.isDisposed) {
402
return;
403
}
404
- this._currentTitle = ptyProcess.process;
+ // HACK: The node-pty API can return undefined somehow https://github.com/microsoft/vscode/issues/222323
405
+ this._currentTitle = (ptyProcess.process ?? '');
406
this._onDidChangeProperty.fire({ type: ProcessPropertyType.Title, value: this._currentTitle });
407
// If fig is installed it may change the title of the process
408
const sanitizedTitle = this.currentTitle.replace(/ \(figterm\)$/g, '');
0 commit comments