mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
Get recently opened
This commit is contained in:
parent
d0e60e01ad
commit
78d48a09cd
|
@ -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({
|
|||
}
|
||||
}]
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue