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

Method run

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

Source from the content-addressed store, hash-verified

16 }
17
18 async run([targets]: [TypedSelection[]]): Promise<ActionReturnValue> {
19 const editor = ensureSingleEditor(targets);
20
21 const { thatMark } = await this.graph.actions.remove.run([targets]);
22
23 if (thatMark != null) {
24 await setSelectionsAndFocusEditor(
25 editor,
26 thatMark.map(({ selection }) => selection)
27 );
28 }
29
30 return { thatMark };
31 }
32}

Callers

nothing calls this directly

Calls 3

ensureSingleEditorFunction · 0.90
runMethod · 0.65

Tested by

no test coverage detected