Skip to content

Commit 1a8406d

Browse files
Update LKG.
1 parent 5192bc5 commit 1a8406d

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

lib/tsc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,9 +1044,6 @@ var ts;
10441044
readFile: readFile,
10451045
writeFile: writeFile,
10461046
watchFile: function (fileName, callback) {
1047-
if (isNode4OrLater()) {
1048-
return _fs.watch(fileName, function (eventName, relativeFileName) { return callback(fileName); });
1049-
}
10501047
var watchedFile = watchedFileSet.addFile(fileName, callback);
10511048
return {
10521049
close: function () { return watchedFileSet.removeFile(watchedFile); }

lib/tsserver.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,9 +1044,6 @@ var ts;
10441044
readFile: readFile,
10451045
writeFile: writeFile,
10461046
watchFile: function (fileName, callback) {
1047-
if (isNode4OrLater()) {
1048-
return _fs.watch(fileName, function (eventName, relativeFileName) { return callback(fileName); });
1049-
}
10501047
var watchedFile = watchedFileSet.addFile(fileName, callback);
10511048
return {
10521049
close: function () { return watchedFileSet.removeFile(watchedFile); }

lib/typescript.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,10 +1947,6 @@ var ts;
19471947
// and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649
19481948
// and https://github.com/Microsoft/TypeScript/issues/4643), therefore
19491949
// if the current node.js version is newer than 4, use `fs.watch` instead.
1950-
if (isNode4OrLater()) {
1951-
// Note: in node the callback of fs.watch is given only the relative file name as a parameter
1952-
return _fs.watch(fileName, function (eventName, relativeFileName) { return callback(fileName); });
1953-
}
19541950
var watchedFile = watchedFileSet.addFile(fileName, callback);
19551951
return {
19561952
close: function () { return watchedFileSet.removeFile(watchedFile); }

lib/typescriptServices.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,10 +1947,6 @@ var ts;
19471947
// and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649
19481948
// and https://github.com/Microsoft/TypeScript/issues/4643), therefore
19491949
// if the current node.js version is newer than 4, use `fs.watch` instead.
1950-
if (isNode4OrLater()) {
1951-
// Note: in node the callback of fs.watch is given only the relative file name as a parameter
1952-
return _fs.watch(fileName, function (eventName, relativeFileName) { return callback(fileName); });
1953-
}
19541950
var watchedFile = watchedFileSet.addFile(fileName, callback);
19551951
return {
19561952
close: function () { return watchedFileSet.removeFile(watchedFile); }

0 commit comments

Comments
 (0)