Skip to content

Commit 688df5e

Browse files
authored
Merge pull request microsoft#27882 from marckassay/24919
For 'conflict (add/add)' and 'conflict (modify/delete)' issues
2 parents 0e0bc4d + b7b818e commit 688df5e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

extensions/git/src/commands.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ export class CommandCenter {
196196

197197
case Status.MODIFIED:
198198
return toGitUri(resource.resourceUri, '~');
199+
200+
case Status.DELETED_BY_THEM:
201+
return toGitUri(resource.resourceUri, '');
199202
}
200203
}
201204

@@ -208,6 +211,7 @@ export class CommandCenter {
208211
return toGitUri(resource.resourceUri, '');
209212

210213
case Status.INDEX_DELETED:
214+
case Status.DELETED_BY_THEM:
211215
case Status.DELETED:
212216
return toGitUri(resource.resourceUri, 'HEAD');
213217

@@ -223,6 +227,7 @@ export class CommandCenter {
223227

224228
return resource.resourceUri;
225229

230+
case Status.BOTH_ADDED:
226231
case Status.BOTH_MODIFIED:
227232
return resource.resourceUri;
228233
}
@@ -234,9 +239,12 @@ export class CommandCenter {
234239
switch (resource.type) {
235240
case Status.INDEX_MODIFIED:
236241
case Status.INDEX_RENAMED:
242+
case Status.DELETED_BY_THEM:
237243
return `${basename} (Index)`;
238244

239245
case Status.MODIFIED:
246+
case Status.BOTH_ADDED:
247+
case Status.BOTH_MODIFIED:
240248
return `${basename} (Working Tree)`;
241249
}
242250

0 commit comments

Comments
 (0)