pass first letter into terminal, don't await timeout

This commit is contained in:
meganrogge
2023-10-20 13:48:45 -07:00
parent 8b2aec0bda
commit 652ef862b8
2 changed files with 6 additions and 1 deletions

1
.vscode/tasks.json vendored
View File

@@ -1,6 +1,7 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch-clientd",

View File

@@ -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) => {