Skip to content

Commit

Permalink
Fix warning action modal
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddossett committed Jul 28, 2022
1 parent ba2365c commit 2ca73cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifications-sample/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function activate(context: vscode.ExtensionContext) {

// Notifcation with actions
let showWarningNotificationWithActions = vscode.commands.registerCommand('notifications-sample.showWarningWithActions', () => {
vscode.window.showWarningMessage('Warning Notification With Actions', 'Action 1', 'Action 2', 'Action 3').then(selection => { selection !== undefined ?? vscode.window.showInformationMessage(`You selected: ${selection}`, { modal: true }); });
vscode.window.showWarningMessage('Warning Notification With Actions', 'Action 1', 'Action 2', 'Action 3').then(selection => { vscode.window.showInformationMessage(`You selected: ${selection}`, { modal: true }); });
});

// Progress notification with option to cancel
Expand Down

0 comments on commit 2ca73cc

Please sign in to comment.