src/vs/platform/workspaces/electron-main/workspacesHistoryMainService.ts/indexOfWorkspace
function indexOfWorkspace(arr: IRecent[], candidate: IWorkspaceIdentifier): number {
	return arr.findIndex(workspace => isRecentWorkspace(workspace) && workspace.workspace.id === candidate.id);
}