mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user