MCPcopy
hub / github.com/anomalyco/opencode / sync

Function sync

packages/app/src/pages/session/file-tabs.tsx:108–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 }
107
108 const sync = () => {
109 const next = getCode()
110 const current = code()
111 if (next.length === current.length && next.every((el, i) => el === current[i])) return
112 setCode(next)
113 }
114
115 const restore = () => {
116 const el = scroll

Callers 15

restoreFunction · 0.70
handleScrollFunction · 0.70
infoFunction · 0.70
messagesFunction · 0.70
undoFunction · 0.70
shareCmdsFunction · 0.70
DirectoryDataProviderFunction · 0.50
focusedSyncFunction · 0.50
LegacyHomeFunction · 0.50
PageFunction · 0.50
upsertFunction · 0.50

Calls 2

getCodeFunction · 0.85
codeFunction · 0.50

Tested by

no test coverage detected