diff --git a/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.ts b/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.ts index dfff2cd40a300..d7143d9b9f500 100644 --- a/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.ts +++ b/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.ts @@ -116,7 +116,7 @@ export class AccessibleBufferWidget extends DisposableStore { } })); this.add(this._xterm.raw.onWriteParsed(async () => { - if (this._focusedContextKey.get()) { + if (this._accessibleBuffer.classList.contains(CssClass.Active)) { await this._updateEditor(true); } }));