(parentWatcher)
| 6669 | sysLog("sysLog:: Elapsed:: ".concat(elapsed, "ms:: onTimerToUpdateChildWatches:: ").concat(cacheToUpdateChildWatches.size, " ").concat(timerToUpdateChildWatches)); |
| 6670 | } |
| 6671 | function removeChildWatches(parentWatcher) { |
| 6672 | if (!parentWatcher) |
| 6673 | return; |
| 6674 | var existingChildWatches = parentWatcher.childWatches; |
| 6675 | parentWatcher.childWatches = ts.emptyArray; |
| 6676 | for (var _i = 0, existingChildWatches_1 = existingChildWatches; _i < existingChildWatches_1.length; _i++) { |
| 6677 | var childWatcher = existingChildWatches_1[_i]; |
| 6678 | childWatcher.close(); |
| 6679 | removeChildWatches(cache.get(toCanonicalFilePath(childWatcher.dirName))); |
| 6680 | } |
| 6681 | } |
| 6682 | function updateChildWatches(parentDir, parentDirPath, options) { |
| 6683 | // Iterate through existing children and update the watches if needed |
| 6684 | var parentWatcher = cache.get(parentDirPath); |
no test coverage detected