mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
Add logs around early terminal input
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user