We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa0df78 commit 0fa822aCopy full SHA for 0fa822a
src/trackers/documentTracker.ts
@@ -260,7 +260,11 @@ export class DocumentTracker<T> implements Disposable {
260
const msg = ex.toString();
261
if (msg.includes('File seems to be binary and cannot be opened as text')) {
262
document = new BinaryTextDocument(documentOrId);
263
- } else if (msg.includes('File not found')) {
+ } 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
+ ) {
268
// If we can't find the file, assume it is because the file has been renamed or deleted at some point
269
document = new MissingRevisionTextDocument(documentOrId);
270
0 commit comments