MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / run

Method run

src/actions/SetSelection.ts:23–31  ·  view source on GitHub ↗
([targets]: [TypedSelection[]])

Source from the content-addressed store, hash-verified

21 }
22
23 async run([targets]: [TypedSelection[]]): Promise<ActionReturnValue> {
24 const editor = ensureSingleEditor(targets);
25
26 await setSelectionsAndFocusEditor(editor, targets.map(this.getSelection));
27
28 return {
29 thatMark: targets.map((target) => target.selection),
30 };
31 }
32}
33
34export class SetSelectionBefore extends SetSelection {

Callers

nothing calls this directly

Calls 2

ensureSingleEditorFunction · 0.90

Tested by

no test coverage detected