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

Method getDecorationStyles

src/actions/BringMoveSwap.ts:62–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 private getDecorationStyles() {
63 let sourceStyle;
64 if (this.type === "bring") {
65 sourceStyle = this.graph.editStyles.referenced;
66 } else if (this.type === "move") {
67 sourceStyle = this.graph.editStyles.pendingDelete;
68 }
69 // NB this.type === "swap"
70 else {
71 sourceStyle = this.graph.editStyles.pendingModification1;
72 }
73 return {
74 sourceStyle,
75 destinationStyle: this.graph.editStyles.pendingModification0,
76 };
77 }
78
79 private async decorateTargets(
80 sources: TypedSelection[],

Callers 2

decorateTargetsMethod · 0.95
decorateThatMarkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected