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

Method run

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

Source from the content-addressed store, hash-verified

269 }
270
271 async run([sources, destinations]: [
272 TypedSelection[],
273 TypedSelection[]
274 ]): Promise<ActionReturnValue> {
275 sources = this.broadcastSource(sources, destinations);
276
277 await this.decorateTargets(sources, destinations);
278
279 const edits = this.getEdits(sources, destinations);
280
281 const markEntries = await this.performEditsAndComputeThatMark(edits);
282
283 const { thatMark, sourceMark } = this.calculateMarks(markEntries);
284
285 await this.decorateThatMark(thatMark);
286
287 return { thatMark, sourceMark };
288 }
289}
290
291export class Bring extends BringMoveSwap {

Callers

nothing calls this directly

Calls 6

broadcastSourceMethod · 0.95
decorateTargetsMethod · 0.95
getEditsMethod · 0.95
calculateMarksMethod · 0.95
decorateThatMarkMethod · 0.95

Tested by

no test coverage detected