From 1603dc79ad28cb5f6939dd2ee380d65eed1c698c Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Tue, 6 Apr 2021 06:52:24 -0700 Subject: [PATCH] Hook up bell status Part of #120241 --- src/vs/workbench/contrib/terminal/browser/terminalInstance.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts b/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts index 3f2f78c8e3f50..c8a9d2ed03cde 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminalInstance.ts @@ -247,8 +247,6 @@ export class TerminalInstance extends Disposable implements ITerminalInstance { this._initDimensions(); this._createProcessManager(); - this.statusList.onDidAddStatus(e => console.log('add', e)); - this.statusList.onDidRemoveStatus(e => console.log('remove', e)); this._containerReadyBarrier = new AutoOpenBarrier(Constants.WaitForContainerThreshold); this._xtermReadyPromise = this._createXterm(); @@ -468,6 +466,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance { if (this._shellLaunchConfig.initialText) { this._xterm.writeln(this._shellLaunchConfig.initialText); } + this._xterm.onBell(() => this.statusList.add({ id: TerminalStatus.Bell, severity: Severity.Warning }, 3000)); this._xterm.onLineFeed(() => this._onLineFeed()); this._xterm.onKey(e => this._onKey(e.key, e.domEvent)); this._xterm.onSelectionChange(async () => this._onSelectionChange());