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

Method run

src/actions/Call.ts:20–38  ·  view source on GitHub ↗
([sources, destinations]: [
    TypedSelection[],
    TypedSelection[]
  ])

Source from the content-addressed store, hash-verified

18 }
19
20 async run([sources, destinations]: [
21 TypedSelection[],
22 TypedSelection[]
23 ]): Promise<ActionReturnValue> {
24 ensureSingleTarget(sources);
25
26 const { returnValue: texts } = await this.graph.actions.getText.run(
27 [sources],
28 {
29 showDecorations: false,
30 }
31 );
32
33 return this.graph.actions.wrapWithPairedDelimiter.run(
34 [destinations],
35 texts[0] + "(",
36 ")"
37 );
38 }
39}

Callers

nothing calls this directly

Calls 2

ensureSingleTargetFunction · 0.90
runMethod · 0.65

Tested by

no test coverage detected