MCPcopy Create free account
hub / github.com/continuedev/continue / getFileWatcher

Function getFileWatcher

extensions/cli/src/util/fileWatcher.ts:242–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240let globalFileWatcher: FileWatcher | null = null;
241
242export function getFileWatcher(): FileWatcher {
243 if (!globalFileWatcher) {
244 globalFileWatcher = new FileWatcher({
245 debounceMs: 1000, // 1 second debounce
246 maxDepth: 10,
247 });
248 }
249 return globalFileWatcher;
250}
251
252export function startFileWatching(): void {
253 const watcher = getFileWatcher();

Callers 1

startFileWatchingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected