Add watchFile option to use fsEvents on parent directory

This commit is contained in:
Sheetal Nandi 2018-01-25 09:30:20 -08:00
parent 93c13ce27d
commit 95b2630fb8

View File

@ -608,6 +608,9 @@ namespace ts {
// Use notifications from FS to watch with falling back to dynamic watch file
dynamicPollingWatchFile = createDynamicPriorityPollingWatchFile(nodeSystem);
return createWatchFileUsingDynamicWatchFile(dynamicPollingWatchFile);
case "UseFsEventsOnParentDirectory":
// Use notifications from FS to watch with falling back to fs.watchFile
return createNonPollingWatchFile();
}
return useNonPollingWatchers ?
createNonPollingWatchFile() :