Skip to content

Commit

Permalink
Git - getSCMResource() should also look at the merge group (#164450)
Browse files Browse the repository at this point in the history
getSCMResource() should also look at the merge group
  • Loading branch information
lszomoru authored Oct 24, 2022
1 parent 9812344 commit 7bd27b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/git/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3374,7 +3374,8 @@ export class CommandCenter {
}

return repository.workingTreeGroup.resourceStates.filter(r => r.resourceUri.toString() === uriString)[0]
|| repository.indexGroup.resourceStates.filter(r => r.resourceUri.toString() === uriString)[0];
|| repository.indexGroup.resourceStates.filter(r => r.resourceUri.toString() === uriString)[0]
|| repository.mergeGroup.resourceStates.filter(r => r.resourceUri.toString() === uriString)[0];
}
return undefined;
}
Expand Down

0 comments on commit 7bd27b4

Please sign in to comment.