Skip to content

Commit

Permalink
Better diff for deleted file in merge conflict. Fixes #88973 (#91245)
Browse files Browse the repository at this point in the history
Co-authored-by: João Moreno <joao.moreno@microsoft.com>
  • Loading branch information
jeanp413 and joaomoreno committed Nov 5, 2020
1 parent 36e2868 commit 818d57d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extensions/git/src/commands.ts
Expand Up @@ -347,7 +347,9 @@ export class CommandCenter {
right = toGitUri(resource.resourceUri, resource.resourceGroupType === ResourceGroupType.Index ? 'index' : 'wt', { submoduleOf: repository.root });
}
} else {
if (resource.type !== Status.DELETED_BY_THEM) {
if (resource.type === Status.DELETED_BY_US || resource.type === Status.DELETED_BY_THEM) {
left = toGitUri(resource.resourceUri, '~1');
} else {
left = this.getLeftResource(resource);
}

Expand Down

0 comments on commit 818d57d

Please sign in to comment.