Skip to content

Commit 0fa822a

Browse files
committed
Fixes because of change in vscode error message
1 parent aa0df78 commit 0fa822a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/trackers/documentTracker.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,11 @@ export class DocumentTracker<T> implements Disposable {
260260
const msg = ex.toString();
261261
if (msg.includes('File seems to be binary and cannot be opened as text')) {
262262
document = new BinaryTextDocument(documentOrId);
263-
} else if (msg.includes('File not found')) {
263+
} else if (
264+
msg.includes('File not found') ||
265+
msg.includes('Unable to read file') ||
266+
msg.includes('Unable to resolve non-existing file')
267+
) {
264268
// If we can't find the file, assume it is because the file has been renamed or deleted at some point
265269
document = new MissingRevisionTextDocument(documentOrId);
266270

0 commit comments

Comments
 (0)