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

Method startWatching

extensions/cli/src/util/fileWatcher.ts:185–195  ·  view source on GitHub ↗
(rootPath: string = process.cwd())

Source from the content-addressed store, hash-verified

183 }
184
185 public startWatching(rootPath: string = process.cwd()): void {
186 this.stopWatching();
187 this.isInitializing = true;
188 this.watchDirectory(rootPath);
189
190 // Allow a small delay for initial file system events to settle
191 // before enabling callbacks
192 setTimeout(() => {
193 this.isInitializing = false;
194 }, 50);
195 }
196
197 public stopWatching(): void {
198 this.isInitializing = false;

Callers 2

startFileWatchingFunction · 0.80

Calls 2

stopWatchingMethod · 0.95
watchDirectoryMethod · 0.95

Tested by

no test coverage detected