This commit is contained in:
meganrogge
2023-08-14 15:21:37 -07:00
parent 7c75fd7e13
commit e151ba5aca
2 changed files with 3 additions and 3 deletions
@@ -284,11 +284,11 @@ export class XtermTerminal extends DisposableStore implements IXtermTerminal, ID
if (!textArea) {
return;
}
// Sync the textarea using shell integration so screen
// readers can review the command with left/ right arrow keys
// Sync the textarea using shell integration
textArea.textContent = data.content;
textArea.selectionStart = data.cursorX;
textArea.selectionEnd = data.cursorX;
// TODO: cursorY?
}));
this._anyTerminalFocusContextKey = TerminalContextKeys.focusInAny.bindTo(contextKeyService);
@@ -51,7 +51,7 @@ class TestWebglAddon implements WebglAddon {
}
clearTextureAtlas() { }
}
// to
class TestXtermTerminal extends XtermTerminal {
webglAddonPromise: Promise<typeof WebglAddon> = Promise.resolve(TestWebglAddon);
// Force synchronous to avoid async when activating the addon