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

Function updateWatchPaths

src/utils/hooks/fileChangedWatcher.ts:108–120  ·  view source on GitHub ↗
(paths: string[])

Source from the content-addressed store, hash-verified

106}
107
108export function updateWatchPaths(paths: string[]): void {
109 if (!initialized) return
110 const sorted = paths.slice().sort()
111 if (
112 sorted.length === dynamicWatchPathsSorted.length &&
113 sorted.every((p, i) => p === dynamicWatchPathsSorted[i])
114 ) {
115 return
116 }
117 dynamicWatchPaths = paths
118 dynamicWatchPathsSorted = sorted
119 restartWatching()
120}
121
122function restartWatching(): void {
123 if (watcher) {

Callers 2

processSessionStartHooksFunction · 0.85
handleFileEventFunction · 0.85

Calls 1

restartWatchingFunction · 0.85

Tested by

no test coverage detected