MCPcopy Index your code
hub / github.com/nodejs/node / watchInputFiles

Function watchInputFiles

test/fixtures/snapshot/typescript.js:125392–125399  ·  view source on GitHub ↗
(state, resolved, resolvedPath, parsed)

Source from the content-addressed store, hash-verified

125390 }, flags, parsed === null || parsed === void 0 ? void 0 : parsed.watchOptions, ts.WatchType.WildcardDirectory, resolved); });
125391 }
125392 function watchInputFiles(state, resolved, resolvedPath, parsed) {
125393 if (!state.watch)
125394 return;
125395 ts.mutateMap(getOrCreateValueMapFromConfigFileMap(state.allWatchedInputFiles, resolvedPath), ts.arrayToMap(parsed.fileNames, function (fileName) { return toPath(state, fileName); }), {
125396 createNewValue: function (_path, input) { return state.watchFile(input, function () { return invalidateProjectAndScheduleBuilds(state, resolvedPath, ts.ConfigFileProgramReloadLevel.None); }, ts.PollingInterval.Low, parsed === null || parsed === void 0 ? void 0 : parsed.watchOptions, ts.WatchType.SourceFile, resolved); },
125397 onDeleteValue: ts.closeFileWatcher,
125398 });
125399 }
125400 function watchPackageJsonFiles(state, resolved, resolvedPath, parsed) {
125401 if (!state.watch || !state.lastCachedPackageJsonLookups)
125402 return;

Callers 2

startWatchingFunction · 0.85

Calls 4

toPathFunction · 0.85
watchFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…