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

Function notify

packages/session-ui/src/components/file.tsx:850–863  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

848 }))
849
850 const notify = () => {
851 notifyRendered({
852 viewer,
853 isReady: (root) => {
854 if (virtual()) return root.querySelector("[data-line]") != null
855 return root.querySelectorAll("[data-line]").length >= lineCount()
856 },
857 onReady: () => {
858 applySelection(viewer.lastSelection)
859 viewer.find.refresh({ reset: true })
860 local.onRendered?.()
861 },
862 })
863 }
864
865 useSearchHandle({
866 search: () => local.search,

Callers 1

DiffViewerFunction · 0.70

Calls 6

applySelectionFunction · 0.85
refreshMethod · 0.80
notifyRenderedFunction · 0.70
lineCountFunction · 0.70
setSelectedLinesFunction · 0.70
doneFunction · 0.50

Tested by

no test coverage detected