Skip to main content

Interface: CommandTarget

actions/EditNew/EditNew.types.CommandTarget

Internal type to be used for storing a reference to a target that will use a VSCode command to insert a new target, eg editor.action.insertLineAfter.

Properties

command

command: string

The VSCode command to run, eg editor.action.insertLineAfter

Defined in

actions/EditNew/EditNew.types.ts:20


index

index: number

The original index of this target in the original list of targets passed to the action

Defined in

actions/EditNew/EditNew.types.ts:15


target

target: Target

Defined in

actions/EditNew/EditNew.types.ts:9