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

Function scrollToReviewDiff

packages/app/src/pages/session.tsx:1181–1191  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

1179 }
1180
1181 const scrollToReviewDiff = (path: string) => {
1182 const root = tree.reviewScroll
1183 if (!root) return false
1184
1185 const top = reviewDiffTop(path)
1186 if (top === undefined) return false
1187
1188 view().setScroll("review", { x: root.scrollLeft, y: top })
1189 root.scrollTo({ top, behavior: "auto" })
1190 return true
1191 }
1192
1193 const focusReviewDiff = (path: string) => {
1194 openReviewPanel()

Callers 1

attemptFunction · 0.85

Calls 2

reviewDiffTopFunction · 0.85
viewFunction · 0.85

Tested by

no test coverage detected