MCPcopy Create free account
hub / github.com/anomalyco/opencode / cloneSelection

Function cloneSelection

packages/app/src/context/prompt.tsx:103–106  ·  view source on GitHub ↗
(selection?: FileSelection)

Source from the content-addressed store, hash-verified

101}
102
103function cloneSelection(selection?: FileSelection) {
104 if (!selection) return undefined
105 return { ...selection }
106}
107
108function clonePart(part: ContentPart): ContentPart {
109 if (part.type === "text") return { ...part }

Callers 1

clonePartFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected