Merge pull request #5628 from Microsoft/checkOnMissingFile

added missing check if file is specified
This commit is contained in:
Vladimir Matveev 2015-11-11 17:13:24 -08:00
commit ef02bf0915

View File

@ -2847,8 +2847,11 @@ namespace ts {
}
function sourceFileUpToDate(sourceFile: SourceFile): boolean {
if (!sourceFile) {
return false;
}
let path = sourceFile.path || toPath(sourceFile.fileName, currentDirectory, getCanonicalFileName);
return sourceFile && sourceFile.version === hostCache.getVersion(path);
return sourceFile.version === hostCache.getVersion(path);
}
function programUpToDate(): boolean {