Merge pull request #294191 from microsoft/tyriar/logs

Add logs around early terminal input
This commit is contained in:
Daniel Imms
2026-02-10 11:39:32 -08:00
committed by GitHub

View File

@@ -370,6 +370,7 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
}
this._processListeners = [
newProcess.onProcessReady((e: IProcessReadyEvent) => {
this._logService.debug('onProcessReady', e);
this._processTraits = e;
this.shellProcessId = e.pid;
this._initialCwd = e.cwd;
@@ -379,6 +380,7 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
if (this._preLaunchInputQueue.length > 0 && this._process) {
// Send any queued data that's waiting
this._logService.debug('sending prelaunch input queue', this._preLaunchInputQueue);
newProcess.input(this._preLaunchInputQueue.join(''));
this._preLaunchInputQueue.length = 0;
}
@@ -632,6 +634,7 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
}
} else {
// If the pty is not ready, queue the data received to send later
this._logService.debug('queueing data in prelaunch input queue', data);
this._preLaunchInputQueue.push(data);
}
}