Git - handle the diff editor for untracked files now that we throw FileNotFound if the file does not exist (#236863)

This commit is contained in:
Ladislau Szomoru
2024-12-24 02:02:40 +01:00
committed by GitHub
parent fca210cd10
commit 4fa5611d67
2 changed files with 2 additions and 3 deletions

View File

@@ -192,7 +192,8 @@ export class GitFileSystemProvider implements FileSystemProvider {
try {
return await repository.buffer(sanitizeRef(ref, path, repository), path);
} catch (err) {
// File does not exist in git (ex: git ignored)
// File does not exist in git. This could be
// because the file is untracked or ignored
throw FileSystemError.FileNotFound();
}
}