Skip to main content

Module: actions/EditNew/runInsertLineAfterTargets

Functions

runInsertLineAfterTargets

runInsertLineAfterTargets(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

NameTypeDescription
graphGraphThe graph object
editorEditableTextEditorThe editor on which we're operating
stateStateThe state object tracking cursors, thatMark, etc

Returns

Promise<State>

An updated state object

Defined in

actions/EditNew/runInsertLineAfterTargets.ts:17