Skip to content

Commit e7edf6e

Browse files
authored
Give an option to show changes (SCM view) when encountering a merge conflict (microsoft#167265)
fixes microsoft#162037
1 parent b6c2269 commit e7edf6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extensions/git/src/commands.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3277,10 +3277,12 @@ export class CommandCenter {
32773277
case GitErrorCodes.Conflict:
32783278
message = l10n.t('There are merge conflicts. Resolve them before committing.');
32793279
type = 'warning';
3280+
choices.set(l10n.t('Show Changes'), () => commands.executeCommand('workbench.view.scm'));
32803281
options.modal = false;
32813282
break;
32823283
case GitErrorCodes.StashConflict:
32833284
message = l10n.t('There were merge conflicts while applying the stash.');
3285+
choices.set(l10n.t('Show Changes'), () => commands.executeCommand('workbench.view.scm'));
32843286
type = 'warning';
32853287
options.modal = false;
32863288
break;

0 commit comments

Comments
 (0)