(directory, flags)
| 123899 | } |
| 123900 | } |
| 123901 | function watchWildcardDirectory(directory, flags) { |
| 123902 | return watchDirectory(directory, function (fileOrDirectory) { |
| 123903 | ts.Debug.assert(!!configFileName); |
| 123904 | var fileOrDirectoryPath = toPath(fileOrDirectory); |
| 123905 | // Since the file existence changed, update the sourceFiles cache |
| 123906 | if (cachedDirectoryStructureHost) { |
| 123907 | cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath); |
| 123908 | } |
| 123909 | nextSourceFileVersion(fileOrDirectoryPath); |
| 123910 | if (ts.isIgnoredFileFromWildCardWatching({ |
| 123911 | watchedDirPath: toPath(directory), |
| 123912 | fileOrDirectory: fileOrDirectory, |
| 123913 | fileOrDirectoryPath: fileOrDirectoryPath, |
| 123914 | configFileName: configFileName, |
| 123915 | extraFileExtensions: extraFileExtensions, |
| 123916 | options: compilerOptions, |
| 123917 | program: getCurrentBuilderProgram() || rootFileNames, |
| 123918 | currentDirectory: currentDirectory, |
| 123919 | useCaseSensitiveFileNames: useCaseSensitiveFileNames, |
| 123920 | writeLog: writeLog, |
| 123921 | toPath: toPath, |
| 123922 | })) |
| 123923 | return; |
| 123924 | // Reload is pending, do the reload |
| 123925 | if (reloadLevel !== ts.ConfigFileProgramReloadLevel.Full) { |
| 123926 | reloadLevel = ts.ConfigFileProgramReloadLevel.Partial; |
| 123927 | // Schedule Update the program |
| 123928 | scheduleProgramUpdate(); |
| 123929 | } |
| 123930 | }, flags, watchOptions, ts.WatchType.WildcardDirectory); |
| 123931 | } |
| 123932 | function updateExtendedConfigFilesWatches(forProjectPath, options, watchOptions, watchType) { |
| 123933 | ts.updateSharedExtendedConfigFileWatcher(forProjectPath, options, sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = new ts.Map()), function (extendedConfigFileName, extendedConfigFilePath) { return watchFile(extendedConfigFileName, function (_fileName, eventKind) { |
| 123934 | var _a; |
nothing calls this directly
no test coverage detected