From 0fa822a756e0c766e9da981780a1cd0bf15c98db Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 15 Jan 2020 23:48:37 -0500 Subject: [PATCH] Fixes because of change in vscode error message --- src/trackers/documentTracker.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/trackers/documentTracker.ts b/src/trackers/documentTracker.ts index eb9a3ff..ed4fa7e 100644 --- a/src/trackers/documentTracker.ts +++ b/src/trackers/documentTracker.ts @@ -260,7 +260,11 @@ export class DocumentTracker implements Disposable { const msg = ex.toString(); if (msg.includes('File seems to be binary and cannot be opened as text')) { 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 document = new MissingRevisionTextDocument(documentOrId);