From ca28dc10d78296d10befc1df3c298a1771c5d98d Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Mon, 26 Jul 2021 13:55:23 -0700 Subject: [PATCH] Include terminal scheme in recently opened anything quick access. Fixes #128445 --- src/vs/workbench/contrib/search/browser/anythingQuickAccess.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/search/browser/anythingQuickAccess.ts b/src/vs/workbench/contrib/search/browser/anythingQuickAccess.ts index 2926ddad4ad..10d91c1446c 100644 --- a/src/vs/workbench/contrib/search/browser/anythingQuickAccess.ts +++ b/src/vs/workbench/contrib/search/browser/anythingQuickAccess.ts @@ -446,7 +446,8 @@ export class AnythingQuickAccessProvider extends PickerQuickAccessProvider = []; for (const editor of this.historyService.getHistory()) { const resource = editor.resource; - if (!resource || (!this.fileService.canHandleResource(resource) && resource.scheme !== Schemas.untitled)) { + // allow untitled and terminal editors to go through + if (!resource || (!this.fileService.canHandleResource(resource) && resource.scheme !== Schemas.untitled && resource.scheme !== Schemas.vscodeTerminal)) { continue; // exclude editors without file resource if we are searching by pattern }