Get recently opened

This commit is contained in:
Alex Ross 2019-08-20 17:37:29 +02:00
parent d0e60e01ad
commit 78d48a09cd

View file

@ -175,6 +175,11 @@ CommandsRegistry.registerCommand('_workbench.addToRecentlyOpened', async functio
return windowService.addRecentlyOpened([recent]);
});
CommandsRegistry.registerCommand('_workbench.getRecentlyOpened', async function (accessor: ServicesAccessor) {
const windowService = accessor.get(IWindowService);
return windowService.getRecentlyOpened();
});
export class SetEditorLayoutAPICommand {
public static ID = 'vscode.setEditorLayout';
public static execute(executor: ICommandsExecutor, layout: EditorGroupLayout): Promise<any> {
@ -205,4 +210,4 @@ CommandsRegistry.registerCommand({
}
}]
}
});
});