|
@ -260,7 +260,11 @@ export class DocumentTracker implements Disposable { |
|
|
const msg = ex.toString(); |
|
|
const msg = ex.toString(); |
|
|
if (msg.includes('File seems to be binary and cannot be opened as text')) { |
|
|
if (msg.includes('File seems to be binary and cannot be opened as text')) { |
|
|
document = new BinaryTextDocument(documentOrId); |
|
|
document = new BinaryTextDocument(documentOrId); |
|
|
} else if (msg.includes('File not found')) { |
|
|
|
|
|
|
|
|
} else if ( |
|
|
|
|
|
msg.includes('File not found') || |
|
|
|
|
|
msg.includes('Unable to read file') || |
|
|
|
|
|
msg.includes('Unable to resolve non-existing file') |
|
|
|
|
|
) { |
|
|
// If we can't find the file, assume it is because the file has been renamed or deleted at some point
|
|
|
// If we can't find the file, assume it is because the file has been renamed or deleted at some point
|
|
|
document = new MissingRevisionTextDocument(documentOrId); |
|
|
document = new MissingRevisionTextDocument(documentOrId); |
|
|
|
|
|
|
|
|