From 95b2630fb805c120b17e21aa0f3a8a0be7e8ca65 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 25 Jan 2018 09:30:20 -0800 Subject: [PATCH] Add watchFile option to use fsEvents on parent directory --- src/compiler/sys.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 2097475758b..67beed19363 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -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() :