mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
Git - file system provider should throw FileNotFound if the resource does not exist in git instead of returning an empty file (#236676)
This commit is contained in:
@@ -192,7 +192,8 @@ export class GitFileSystemProvider implements FileSystemProvider {
|
||||
try {
|
||||
return await repository.buffer(sanitizeRef(ref, path, repository), path);
|
||||
} catch (err) {
|
||||
return new Uint8Array(0);
|
||||
// File does not exist in git (ex: git ignored)
|
||||
throw FileSystemError.FileNotFound();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user