From 2ca73cce6b2945c19363161b36e6f0a165e1ca1d Mon Sep 17 00:00:00 2001 From: David Dossett Date: Thu, 28 Jul 2022 16:52:22 -0700 Subject: [PATCH] Fix warning action modal --- notifications-sample/src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications-sample/src/extension.ts b/notifications-sample/src/extension.ts index bc8ce60e0..a52376cf8 100644 --- a/notifications-sample/src/extension.ts +++ b/notifications-sample/src/extension.ts @@ -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