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