Include terminal scheme in recently opened anything quick access. Fixes #128445

This commit is contained in:
Tyler Leonhardt 2021-07-26 13:55:23 -07:00
parent 3f6294b50e
commit ca28dc10d7
No known key found for this signature in database
GPG key ID: 1BC2B6244363E77E

View file

@ -446,7 +446,8 @@ export class AnythingQuickAccessProvider extends PickerQuickAccessProvider<IAnyt
const editorHistoryPicks: Array<IAnythingQuickPickItem> = [];
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
}