Skip to content

Commit 649d6be

Browse files
committed
Hook up bg terminal listeners before attach
Part of microsoft#74228
1 parent 39cf5d9 commit 649d6be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/contrib/terminal/browser/terminalService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export abstract class TerminalService extends CommonTerminalService implements I
5757
shell,
5858
true);
5959
this._backgroundedTerminalInstances.push(instance);
60+
this._initInstanceListeners(instance);
6061
return instance;
6162
}
6263
const terminalTab = this._instantiationService.createInstance(TerminalTab,
@@ -88,7 +89,6 @@ export abstract class TerminalService extends CommonTerminalService implements I
8889
this._terminalTabs.push(terminalTab);
8990
terminalTab.addDisposable(terminalTab.onDisposed(this._onTabDisposed.fire, this._onTabDisposed));
9091
terminalTab.addDisposable(terminalTab.onInstancesChanged(this._onInstancesChanged.fire, this._onInstancesChanged));
91-
this._initInstanceListeners(instance);
9292
if (this.terminalInstances.length === 1) {
9393
// It's the first instance so it should be made active automatically
9494
this.setActiveInstanceByIndex(0);

0 commit comments

Comments
 (0)