MCPcopy Index your code
hub / github.com/anomalyco/opencode / syncMention

Function syncMention

packages/session-ui/src/components/line-comment.tsx:281–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279 }
280
281 const syncMention = () => {
282 const item = currentMention()
283 if (!item) {
284 closeMention()
285 return
286 }
287
288 setOpen(true)
289 mention.onInput(item.query)
290 }
291
292 const selectActiveMention = () => {
293 const items = mention.flat()

Callers 1

LineCommentEditorFunction · 0.85

Calls 3

currentMentionFunction · 0.85
closeMentionFunction · 0.85
setOpenFunction · 0.70

Tested by

no test coverage detected