src/vs/platform/workspaces/electron-main/workspacesHistoryMainService.ts/WorkspacesHistoryMainService/getRecentlyOpened
class WorkspacesHistoryMainService:	async getRecentlyOpened(include?: ICodeWindow): Promise<IRecentlyOpened> {
		const workspaces: Array<IRecentFolder | IRecentWorkspace> = [];
		const files: IRecentFile[] = [];

		// Add current workspace to beginning if set
		if (include) {
			const currentWorkspace = include.config?.workspace;
			if (isWorkspaceIdentifier(currentWorkspace) && !this.workspacesManagementMainService.isUntitledWorkspace(currentWorkspace)) {
				workspaces.push({ workspace: currentWorkspace, remoteAuthority: include.remoteAuthority });
			} else if (isSingleFolderWorkspaceIdentifier(currentWorkspace)) {
				workspaces.push({ folderUri: currentWorkspace.uri, remoteAuthority: include.remoteAuthority });
			}
		}

		// Add currently files to open to the beginning if any
		const currentFiles = include?.config?.filesToOpenOrCreate;
		if (currentFiles) {
			for (let currentFile of currentFiles) {
				const fileUri = currentFile.fileUri;
				if (fileUri && this.indexOfFile(files, fileUri) === -1) {
					files.push({ fileUri });
				}
			}
		}

		await this.addEntriesFromStorage(workspaces, files);

		return { workspaces, files };
	}