Skip to content

Commit

Permalink
fix missing spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-marechal committed Jan 25, 2023
1 parent bd6f6e5 commit b610af8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ export class TreeViewWidget extends TreeViewWelcomeWidget {

// eslint-disable-next-line @typescript-eslint/no-explicit-any
protected renderInlineCommand(actionMenuNode: ActionMenuNode, index: number, tabbable: boolean, args: any[]): React.ReactNode {
if (!actionMenuNode.icon || !this.commands.isVisible(actionMenuNode.command, args) || !actionMenuNode.when || !this.contextKeys.match(actionMenuNode.when)) {
if (!actionMenuNode.icon || !this.commands.isVisible(actionMenuNode.command, ...args) || !actionMenuNode.when || !this.contextKeys.match(actionMenuNode.when)) {
return false;
}
const className = [TREE_NODE_SEGMENT_CLASS, TREE_NODE_TAIL_CLASS, actionMenuNode.icon, ACTION_ITEM, 'theia-tree-view-inline-action'].join(' ');
Expand Down

0 comments on commit b610af8

Please sign in to comment.