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

Function dispose

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

Source from the content-addressed store, hash-verified

175}
176
177function dispose(): void {
178 if (watcher) {
179 void watcher.close()
180 watcher = null
181 }
182 dynamicWatchPaths = []
183 dynamicWatchPathsSorted = []
184 initialized = false
185 hasEnvHooks = false
186 notifyCallback = null
187}
188
189export function resetFileChangedWatcherForTesting(): void {
190 dispose()

Callers 2

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected