Skip to main content

Class: SimpleIdeCommandAction

actions/SimpleIdeCommandActions.internal.SimpleIdeCommandAction

This is the base class for actions that simply call an ide command on the target. It includes machinery to automatically jump to the target if the editor does not support running the command directly on a target without moving the cursor. Note that most of the heavy lifting is done by CallbackAction.

Hierarchy

Constructors

constructor

new SimpleIdeCommandAction(graph)

Parameters

NameType
graphGraph

Defined in

actions/SimpleIdeCommandActions.ts:28

Properties

callbackAction

Private callbackAction: CallbackAction

Defined in

actions/SimpleIdeCommandActions.ts:20


command

Abstract command: CommandId

Defined in

actions/SimpleIdeCommandActions.ts:22


ensureSingleEditor

ensureSingleEditor: boolean = false

Defined in

actions/SimpleIdeCommandActions.ts:23


ensureSingleTarget

ensureSingleTarget: boolean = false

Defined in

actions/SimpleIdeCommandActions.ts:24


restoreSelection

restoreSelection: boolean = true

Defined in

actions/SimpleIdeCommandActions.ts:25


showDecorations

showDecorations: boolean = true

Defined in

actions/SimpleIdeCommandActions.ts:26

Methods

run

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

Parameters

NameType
targets[Target[]]
__namedParametersOptions

Returns

Promise<ActionReturnValue>

Defined in

actions/SimpleIdeCommandActions.ts:33