src/vs/workbench/services/workingCopy/common/workingCopyBackupService.ts/hashPath
function hashPath(resource: URI): string {
	const str = resource.scheme === Schemas.file || resource.scheme === Schemas.untitled ? resource.fsPath : resource.toString();

	return hashString(str);
}