mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update LKG.
This commit is contained in:
@@ -1044,9 +1044,6 @@ var ts;
|
||||
readFile: readFile,
|
||||
writeFile: writeFile,
|
||||
watchFile: function (fileName, callback) {
|
||||
if (isNode4OrLater()) {
|
||||
return _fs.watch(fileName, function (eventName, relativeFileName) { return callback(fileName); });
|
||||
}
|
||||
var watchedFile = watchedFileSet.addFile(fileName, callback);
|
||||
return {
|
||||
close: function () { return watchedFileSet.removeFile(watchedFile); }
|
||||
|
||||
@@ -1044,9 +1044,6 @@ var ts;
|
||||
readFile: readFile,
|
||||
writeFile: writeFile,
|
||||
watchFile: function (fileName, callback) {
|
||||
if (isNode4OrLater()) {
|
||||
return _fs.watch(fileName, function (eventName, relativeFileName) { return callback(fileName); });
|
||||
}
|
||||
var watchedFile = watchedFileSet.addFile(fileName, callback);
|
||||
return {
|
||||
close: function () { return watchedFileSet.removeFile(watchedFile); }
|
||||
|
||||
@@ -1947,10 +1947,6 @@ var ts;
|
||||
// and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649
|
||||
// and https://github.com/Microsoft/TypeScript/issues/4643), therefore
|
||||
// if the current node.js version is newer than 4, use `fs.watch` instead.
|
||||
if (isNode4OrLater()) {
|
||||
// Note: in node the callback of fs.watch is given only the relative file name as a parameter
|
||||
return _fs.watch(fileName, function (eventName, relativeFileName) { return callback(fileName); });
|
||||
}
|
||||
var watchedFile = watchedFileSet.addFile(fileName, callback);
|
||||
return {
|
||||
close: function () { return watchedFileSet.removeFile(watchedFile); }
|
||||
|
||||
@@ -1947,10 +1947,6 @@ var ts;
|
||||
// and is more efficient than `fs.watchFile` (ref: https://github.com/nodejs/node/pull/2649
|
||||
// and https://github.com/Microsoft/TypeScript/issues/4643), therefore
|
||||
// if the current node.js version is newer than 4, use `fs.watch` instead.
|
||||
if (isNode4OrLater()) {
|
||||
// Note: in node the callback of fs.watch is given only the relative file name as a parameter
|
||||
return _fs.watch(fileName, function (eventName, relativeFileName) { return callback(fileName); });
|
||||
}
|
||||
var watchedFile = watchedFileSet.addFile(fileName, callback);
|
||||
return {
|
||||
close: function () { return watchedFileSet.removeFile(watchedFile); }
|
||||
|
||||
Reference in New Issue
Block a user