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

Method run

src/actions/Find.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 ensureSingleTarget(targets);
20
21 const {
22 returnValue: [query],
23 thatMark,
24 } = await this.graph.actions.getText.run([targets]);
25
26 await commands.executeCommand("workbench.action.findInFiles", {
27 query,
28 });
29
30 return { thatMark };
31 }
32}

Callers

nothing calls this directly

Calls 2

ensureSingleTargetFunction · 0.90
runMethod · 0.65

Tested by

no test coverage detected