Skip to content

Commit a4b8971

Browse files
authored
Fix renamed image in unchecked out PR (#6068)
Fixes #6008
1 parent f23bae0 commit a4b8971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/view/inMemPRContentProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export async function provideDocumentContentForChangeModel(folderRepoManager: Fo
163163
let inMemNeedsFullFile = false;
164164
if (fileChange instanceof InMemFileChangeModel) {
165165
// Partial or looks like binary.
166-
inMemNeedsFullFile = (await fileChange.isPartial()) || (fileChange.status === GitChangeType.ADD && diffHunks.length === 0);
166+
inMemNeedsFullFile = (await fileChange.isPartial()) || ((fileChange.status === GitChangeType.ADD || fileChange.status === GitChangeType.RENAME) && diffHunks.length === 0);
167167
}
168168

169169
if ((fileChange instanceof RemoteFileChangeModel) || ((fileChange instanceof InMemFileChangeModel) && inMemNeedsFullFile)) {

0 commit comments

Comments
 (0)