Add watchFile option to use fsEvents on parent directory

This commit is contained in:
Sheetal Nandi committed 2018-01-25 09:30:27 -08:00
1 parent 93c13ce27d
commit 95b2630fb8
1 file changed
+3
+3
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() :