Fix: File watchers not being disposed in -watch mode

This commit is contained in:
Anders Hejlsberg 2015-03-27 15:53:01 -07:00
parent 4894fee7d3
commit d15278bb86

View File

@ -276,6 +276,7 @@ module ts {
// If a source file changes, mark it as unwatched and start the recompilation timer
function sourceFileChanged(sourceFile: SourceFile) {
sourceFile.fileWatcher.close();
sourceFile.fileWatcher = undefined;
startTimer();
}