mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Include terminal scheme in recently opened anything quick access. Fixes #128445
This commit is contained in:
parent
3f6294b50e
commit
ca28dc10d7
|
@ -446,7 +446,8 @@ export class AnythingQuickAccessProvider extends PickerQuickAccessProvider<IAnyt
|
||||||
const editorHistoryPicks: Array<IAnythingQuickPickItem> = [];
|
const editorHistoryPicks: Array<IAnythingQuickPickItem> = [];
|
||||||
for (const editor of this.historyService.getHistory()) {
|
for (const editor of this.historyService.getHistory()) {
|
||||||
const resource = editor.resource;
|
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
|
continue; // exclude editors without file resource if we are searching by pattern
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue