Use relaunch function instead of reuseTerminal

This matches how the command relaunches it
This commit is contained in:
Daniel Imms 2021-02-03 05:51:39 -08:00
parent a00411c7e8
commit 805d7949eb

View file

@ -1593,7 +1593,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
// Recreate the process if the terminal has not yet been interacted with and it's not a
// special terminal (eg. task, extension terminal)
if (info.requiresAction && !this._processManager.hasWrittenData && !this._shellLaunchConfig.isFeatureTerminal && !this._shellLaunchConfig.isExtensionTerminal) {
this.reuseTerminal(this._shellLaunchConfig, true);
this.relaunch();
return;
}