(
[targets]: [TypedSelection[]],
{
showDecorations = true,
ensureSingleTarget: doEnsureSingleTarget = false,
} = {}
)
| 16 | } |
| 17 | |
| 18 | async run( |
| 19 | [targets]: [TypedSelection[]], |
| 20 | { |
| 21 | showDecorations = true, |
| 22 | ensureSingleTarget: doEnsureSingleTarget = false, |
| 23 | } = {} |
| 24 | ): Promise<ActionReturnValue> { |
| 25 | if (showDecorations) { |
| 26 | await displayPendingEditDecorations( |
| 27 | targets, |
| 28 | this.graph.editStyles.referenced |
| 29 | ); |
| 30 | } |
| 31 | if (doEnsureSingleTarget) { |
| 32 | ensureSingleTarget(targets); |
| 33 | } |
| 34 | |
| 35 | const returnValue = targets.map((target) => |
| 36 | target.selection.editor.document.getText(target.selection.selection) |
| 37 | ); |
| 38 | |
| 39 | return { |
| 40 | returnValue, |
| 41 | thatMark: targets.map((target) => target.selection), |
| 42 | }; |
| 43 | } |
| 44 | } |
nothing calls this directly
no test coverage detected