Skip to content

Commit 753187d

Browse files
roblourensTyriar
andcommitted
Fix microsoft#69972 - use fsPath for untitled schema files
Co-authored-by: Daniel Imms <daimms@microsoft.com>
1 parent d880744 commit 753187d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/services/backup/node/backupFileService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ export class InMemoryBackupFileService implements IBackupFileService {
357357
* Exported only for testing
358358
*/
359359
export function hashPath(resource: Uri): string {
360-
const str = resource.scheme === Schemas.file ? resource.fsPath : resource.toString();
360+
const str = resource.scheme === Schemas.file || resource.scheme === Schemas.untitled ? resource.fsPath : resource.toString();
361361
return crypto.createHash('md5').update(str).digest('hex');
362362
}
363363

0 commit comments

Comments
 (0)