You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Git drop stash commands should use modal dialog (microsoft#166573)
Since the warning is initiated through user action, and the user is required to interact with the warning to finish their intended action we should use a modal dialog here.
Copy file name to clipboardExpand all lines: extensions/git/src/commands.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3017,6 +3017,7 @@ export class CommandCenter {
3017
3017
constyes=l10n.t('Yes');
3018
3018
constresult=awaitwindow.showWarningMessage(
3019
3019
l10n.t('Are you sure you want to drop the stash: {0}?',stash.description),
3020
+
{modal: true},
3020
3021
yes
3021
3022
);
3022
3023
if(result!==yes){
@@ -3041,7 +3042,7 @@ export class CommandCenter {
3041
3042
l10n.t('Are you sure you want to drop ALL stashes? There is 1 stash that will be subject to pruning, and MAY BE IMPOSSIBLE TO RECOVER.') :
3042
3043
l10n.t('Are you sure you want to drop ALL stashes? There are {0} stashes that will be subject to pruning, and MAY BE IMPOSSIBLE TO RECOVER.',stashes.length);
0 commit comments