MCPcopy Index your code
hub / github.com/nodejs/node / updateOptionsForWatchDirectory

Function updateOptionsForWatchDirectory

test/fixtures/snapshot/typescript.js:6879–6898  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

6877 }
6878 }
6879 function updateOptionsForWatchDirectory(options) {
6880 if (options && options.watchDirectory !== undefined)
6881 return options;
6882 switch (tscWatchDirectory) {
6883 case "RecursiveDirectoryUsingFsWatchFile":
6884 // Use polling interval based on priority when create watch using host.watchFile
6885 return { watchDirectory: ts.WatchDirectoryKind.FixedPollingInterval };
6886 case "RecursiveDirectoryUsingDynamicPriorityPolling":
6887 // Use polling interval but change the interval depending on file changes and their default polling interval
6888 return { watchDirectory: ts.WatchDirectoryKind.DynamicPriorityPolling };
6889 default:
6890 var defaultFallbackPolling = options === null || options === void 0 ? void 0 : options.fallbackPolling;
6891 return {
6892 watchDirectory: ts.WatchDirectoryKind.UseFsEvents,
6893 fallbackPolling: defaultFallbackPolling !== undefined ?
6894 defaultFallbackPolling :
6895 undefined
6896 };
6897 }
6898 }
6899 }
6900 ts.createSystemWatchFunctions = createSystemWatchFunctions;
6901 /**

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected