Skip to content

Commit 8c6105f

Browse files
committed
Merge pull request #6066 from zhengbli/i6016_for17
Roll back to polling file watching for 1.7
2 parents ff78477 + 564c4af commit 8c6105f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/compiler/sys.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,6 @@ namespace ts {
411411
// and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649
412412
// and https://github.com/Microsoft/TypeScript/issues/4643), therefore
413413
// if the current node.js version is newer than 4, use `fs.watch` instead.
414-
if (isNode4OrLater()) {
415-
// Note: in node the callback of fs.watch is given only the relative file name as a parameter
416-
return _fs.watch(fileName, (eventName: string, relativeFileName: string) => callback(fileName));
417-
}
418-
419414
const watchedFile = watchedFileSet.addFile(fileName, callback);
420415
return {
421416
close: () => watchedFileSet.removeFile(watchedFile)

0 commit comments

Comments
 (0)