Implement shouldPersist for all terminals processes

shouldPersist was not being set on RemoteTerminalProcess, causing reconnect
to fail for all remote terminals. The fix was to push the persistent logic
up to where the process gets created in TerminalProcessManager just like is
done with local processes. The property was made non-optional to prevent
this sort of thing happening again.

Part of #117896
This commit is contained in:
Daniel Imms
2021-03-01 07:46:34 -08:00
parent 884ed1e3f3
commit edadf1c719
7 changed files with 13 additions and 7 deletions

View File

@@ -185,6 +185,7 @@ export class ExtHostTerminal {
export class ExtHostPseudoterminal implements ITerminalChildProcess {
readonly id = 0;
readonly shouldPersist = false;
private readonly _onProcessData = new Emitter<string>();
public readonly onProcessData: Event<string> = this._onProcessData.event;