Skip to main content

Class: ExecuteCommand

actions/ExecuteCommand.ExecuteCommand

This action can be used to execute a built-in ide command on one or more targets by first setting the selection to those targets and then running the action, restoring the selections if restoreSelection is true. Internally, most of the heavy lifting is done by CallbackAction.

Implements

Constructors

constructor

new ExecuteCommand(graph)

Parameters

NameType
graphGraph

Defined in

actions/ExecuteCommand.ts:24

Properties

callbackAction

Private callbackAction: CallbackAction

Defined in

actions/ExecuteCommand.ts:23

Methods

run

run(targets, commandId, __namedParameters?): Promise<ActionReturnValue>

Parameters

NameType
targets[Target[]]
commandIdstring
__namedParametersOptions

Returns

Promise<ActionReturnValue>

Implementation of

Action.run

Defined in

actions/ExecuteCommand.ts:29