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

Function setFocus

packages/app/src/context/comments.tsx:95–96  ·  view source on GitHub ↗
(value: CommentFocus | null | ((value: CommentFocus | null) => CommentFocus | null))

Source from the content-addressed store, hash-verified

93 ) => setState(key, value)
94
95 const setFocus = (value: CommentFocus | null | ((value: CommentFocus | null) => CommentFocus | null)) =>
96 setRef("focus", value)
97
98 const setActive = (value: CommentFocus | null | ((value: CommentFocus | null) => CommentFocus | null)) =>
99 setRef("active", value)

Callers 6

clickFileTreeRowFunction · 0.85
runFunction · 0.85
addFunction · 0.85
removeFunction · 0.85
replaceFunction · 0.85
clearFunction · 0.85

Calls 1

setRefFunction · 0.85

Tested by

no test coverage detected