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.
1 parent 866bddc commit 50e34c9Copy full SHA for 50e34c9
src/vs/platform/terminal/node/ptyService.ts
@@ -597,7 +597,9 @@ export class PersistentTerminalProcess extends Disposable {
597
598
async detach(): Promise<void> {
599
this._logService.trace('persistentTerminalProcess#detach', this._persistentProcessId);
600
- if (this.shouldPersistTerminal) {
+ // Keep the process around if it was indicated to persist and it has had some iteraction or
601
+ // was replayed
602
+ if (this.shouldPersistTerminal && this._interactionState !== InteractionState.None) {
603
this._disconnectRunner1.schedule();
604
} else {
605
this.shutdown(true);
0 commit comments