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

Function watchConfigFile

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

Source from the content-addressed store, hash-verified

125354 reportErrorSummary(state, buildOrder);
125355 }
125356 function watchConfigFile(state, resolved, resolvedPath, parsed) {
125357 if (!state.watch || state.allWatchedConfigFiles.has(resolvedPath))
125358 return;
125359 state.allWatchedConfigFiles.set(resolvedPath, state.watchFile(resolved, function () {
125360 invalidateProjectAndScheduleBuilds(state, resolvedPath, ts.ConfigFileProgramReloadLevel.Full);
125361 }, ts.PollingInterval.High, parsed === null || parsed === void 0 ? void 0 : parsed.watchOptions, ts.WatchType.ConfigFile, resolved));
125362 }
125363 function watchExtendedConfigFiles(state, resolvedPath, parsed) {
125364 ts.updateSharedExtendedConfigFileWatcher(resolvedPath, parsed === null || parsed === void 0 ? void 0 : parsed.options, state.allWatchedExtendedConfigFiles, function (extendedConfigFileName, extendedConfigFilePath) { return state.watchFile(extendedConfigFileName, function () {
125365 var _a;

Callers 2

startWatchingFunction · 0.85

Calls 4

hasMethod · 0.65
setMethod · 0.45
watchFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…