mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Fix warning action modal
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user