Skip to content

Commit 49aa355

Browse files
author
Benjamin Pasero
committed
1 parent 1665bea commit 49aa355

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,8 @@ export class DirtyDiffModel extends Disposable {
11231123
this.originalModelDisposables.add(ref.object.textEditorModel.onDidChangeContent(() => this.triggerDiff()));
11241124

11251125
return originalUri;
1126+
}).catch(error => {
1127+
return null; // possibly invalid reference
11261128
});
11271129
});
11281130

0 commit comments

Comments
 (0)