MCPcopy Index your code
hub / github.com/codeaashu/claude-code / restartWatching

Function restartWatching

src/utils/hooks/fileChangedWatcher.ts:122–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120}
121
122function restartWatching(): void {
123 if (watcher) {
124 void watcher.close()
125 watcher = null
126 }
127 const paths = resolveWatchPaths()
128 if (paths.length > 0) {
129 startWatching(paths)
130 }
131}
132
133export async function onCwdChangedForHooks(
134 oldCwd: string,

Callers 2

updateWatchPathsFunction · 0.85
onCwdChangedForHooksFunction · 0.85

Calls 3

resolveWatchPathsFunction · 0.85
startWatchingFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected