mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 05:41:22 -06:00
Changed watchFile callback behavior.
We no longer recompile unless the new last-modified time is more recent.
This commit is contained in:
parent
f2a8842215
commit
91023227e4
@ -199,7 +199,11 @@ var sys: System = (function () {
|
||||
close() { _fs.unwatchFile(fileName, fileChanged); }
|
||||
};
|
||||
|
||||
function fileChanged() {
|
||||
function fileChanged(curr:any, prev:any) {
|
||||
if (+curr.mtime <= +prev.mtime) {
|
||||
return;
|
||||
}
|
||||
|
||||
callback(fileName);
|
||||
};
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user