Merge pull request #196120 from microsoft/merogge/acc-view-first

pass first letter into terminal, don't await timeout
This commit is contained in:
Megan Rogge
2023-10-20 14:17:35 -07:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch-clientd",
@@ -505,7 +505,11 @@ export class AccessibleView extends Disposable {
this._contextViewService.hideContextView();
this._updateContextKeys(provider, false);
// HACK: Delay to allow the context view to hide #186514
setTimeout(() => provider.onClose(), 100);
if (provider.id === AccessibleViewProviderId.Terminal) {
provider.onClose();
} else {
setTimeout(() => provider.onClose(), 100);
}
};
const disposableStore = new DisposableStore();
disposableStore.add(this._editorWidget.onKeyDown((e) => {