Skip to content

Commit 0b16e33

Browse files
committed
Fixed running action from editor UI
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
1 parent 38ff4af commit 0b16e33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function registerActionsCommands(instance: Instance): Disposable[] {
2222
}
2323
}
2424
else {
25-
for (const target of (items || [item])) {
25+
for (const target of (Array.isArray(items) ? items : [item])) {
2626
if (target instanceof Uri) {
2727
uris.push(target);
2828
}

0 commit comments

Comments
 (0)