MCPcopy Create free account
hub / github.com/coderoad/coderoad-vscode / disposeWatcher

Function disposeWatcher

src/services/hooks/utils/watchers.ts:12–15  ·  view source on GitHub ↗
(watcher: string)

Source from the content-addressed store, hash-verified

10const watcherObject: { [key: string]: chokidar.FSWatcher } = {}
11
12const disposeWatcher = (watcher: string) => {
13 watcherObject[watcher].close()
14 delete watcherObject[watcher]
15}
16
17export const loadWatchers = (watchers: string[] = []): void => {
18 if (!watchers.length) {

Callers 2

loadWatchersFunction · 0.85
resetWatchersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected