src/vs/platform/workspaces/electron-main/workspacesHistoryMainService.ts/indexOfFile
function indexOfFile(arr: IRecentFile[], candidate: URI): number {
	return arr.findIndex(file => extUriBiasedIgnorePathCase.isEqual(file.fileUri, candidate));
}