Skip to content

Commit

Permalink
Handle the case where actionable notifications have no params. Fixes #…
Browse files Browse the repository at this point in the history
…128

Signed-off-by: Fred Bricon <fbricon@gmail.com>
  • Loading branch information
fbricon committed Jan 9, 2017
1 parent 94fbf4d commit f72a387
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ export function activate(context: ExtensionContext) {
show(notification.message, ...titles).then((selection )=>{
for(let action of notification.commands) {
if (action.title === selection) {
commands.executeCommand(action.command, ...action.arguments);
let args:any[] = (action.arguments)?action.arguments:[];
commands.executeCommand(action.command, ...args);
break;
}
}
Expand Down

0 comments on commit f72a387

Please sign in to comment.