MCPcopy Create free account
hub / github.com/nodejs/node / watchWildCardDirectories

Function watchWildCardDirectories

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

Source from the content-addressed store, hash-verified

125369 }, ts.PollingInterval.High, parsed === null || parsed === void 0 ? void 0 : parsed.watchOptions, ts.WatchType.ExtendedConfigFile); }, function (fileName) { return toPath(state, fileName); });
125370 }
125371 function watchWildCardDirectories(state, resolved, resolvedPath, parsed) {
125372 if (!state.watch)
125373 return;
125374 ts.updateWatchingWildcardDirectories(getOrCreateValueMapFromConfigFileMap(state.allWatchedWildcardDirectories, resolvedPath), new ts.Map(ts.getEntries(parsed.wildcardDirectories)), function (dir, flags) { return state.watchDirectory(dir, function (fileOrDirectory) {
125375 var _a;
125376 if (ts.isIgnoredFileFromWildCardWatching({
125377 watchedDirPath: toPath(state, dir),
125378 fileOrDirectory: fileOrDirectory,
125379 fileOrDirectoryPath: toPath(state, fileOrDirectory),
125380 configFileName: resolved,
125381 currentDirectory: state.currentDirectory,
125382 options: parsed.options,
125383 program: state.builderPrograms.get(resolvedPath) || ((_a = getCachedParsedConfigFile(state, resolvedPath)) === null || _a === void 0 ? void 0 : _a.fileNames),
125384 useCaseSensitiveFileNames: state.parseConfigFileHost.useCaseSensitiveFileNames,
125385 writeLog: function (s) { return state.writeLog(s); },
125386 toPath: function (fileName) { return toPath(state, fileName); }
125387 }))
125388 return;
125389 invalidateProjectAndScheduleBuilds(state, resolvedPath, ts.ConfigFileProgramReloadLevel.Partial);
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;

Callers 2

startWatchingFunction · 0.85

Calls 6

toPathFunction · 0.85
getMethod · 0.65
getEntriesMethod · 0.45

Tested by

no test coverage detected