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

Method broadcastSource

src/actions/BringMoveSwap.ts:50–60  ·  view source on GitHub ↗
(
    sources: TypedSelection[],
    destinations: TypedSelection[]
  )

Source from the content-addressed store, hash-verified

48 }
49
50 private broadcastSource(
51 sources: TypedSelection[],
52 destinations: TypedSelection[]
53 ) {
54 if (sources.length === 1 && this.type !== "swap") {
55 // If there is only one source target, expand it to same length as
56 // destination target
57 return Array(destinations.length).fill(sources[0]);
58 }
59 return sources;
60 }
61
62 private getDecorationStyles() {
63 let sourceStyle;

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected