Module: actions/EditNew/runCommandTargets
Functions
runCommandTargets
▸ runCommandTargets(graph
, editor
, state
): Promise
<State
>
Handle targets that will use a VSCode command to insert a new target, eg
editor.action.insertLineAfter
, and return an updated state object.
We proceed by moving cursor to given targets, and then performing the command.
Parameters
Name | Type | Description |
---|---|---|
graph | Graph | The graph object |
editor | EditableTextEditor | The editor on which we're operating |
state | State | The state object tracking cursors, thatMark, etc |
Returns
Promise
<State
>
An updated state
object
Defined in
actions/EditNew/runCommandTargets.ts:18