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

Method decorateThatMark

src/actions/BringMoveSwap.ts:237–253  ·  view source on GitHub ↗
(thatMark: MarkEntry[])

Source from the content-addressed store, hash-verified

235 }
236
237 private async decorateThatMark(thatMark: MarkEntry[]) {
238 const decorationTypes = this.getDecorationStyles();
239 return Promise.all([
240 displayPendingEditDecorations(
241 thatMark
242 .filter(({ isSource }) => isSource)
243 .map(({ typedSelection }) => typedSelection),
244 decorationTypes.sourceStyle
245 ),
246 displayPendingEditDecorations(
247 thatMark
248 .filter(({ isSource }) => !isSource)
249 .map(({ typedSelection }) => typedSelection),
250 decorationTypes.destinationStyle
251 ),
252 ]);
253 }
254
255 private calculateMarks(markEntries: MarkEntry[]) {
256 // Only swap has sources as a "that" mark

Callers 1

runMethod · 0.95

Calls 2

getDecorationStylesMethod · 0.95

Tested by

no test coverage detected