Update based on feedback

This commit is contained in:
Sheetal Nandi
2017-08-18 11:15:42 -07:00
parent a99c04e8f9
commit b66b752561
3 changed files with 5 additions and 2 deletions

View File

@@ -2736,7 +2736,7 @@ namespace ts {
function fileExists(fileName: string): boolean {
const path = toPath(fileName);
const result = getCachedFileSystemEntriesForBaseDir(path);
return (result && hasEntry(result.files, getBaseNameOfFileName(fileName))) ||
return result && hasEntry(result.files, getBaseNameOfFileName(fileName)) ||
host.fileExists(fileName);
}

View File

@@ -30,6 +30,9 @@ namespace ts {
mtime?: Date;
}
/**
* Partial interface of the System thats needed to support the caching of directory structure
*/
export interface PartialSystem {
writeFile(path: string, data: string, writeByteOrderMark?: boolean): void;
fileExists(path: string): boolean;