src/vs/platform/workspaces/electron-main/workspacesHistoryMainService.ts/indexOfFolder
function indexOfFolder(arr: IRecent[], candidate: URI): number {
	return arr.findIndex(folder => isRecentFolder(folder) && extUriBiasedIgnorePathCase.isEqual(folder.folderUri, candidate));
}