Implement readDirectory on the watch mode CompilerHost

This commit is contained in:
Wesley Wigham
2018-09-17 18:02:59 -07:00
parent f6321bf6d5
commit e7cf9994ce

View File

@@ -546,7 +546,8 @@ namespace ts {
},
maxNumberOfFilesToIterateForInvalidation: host.maxNumberOfFilesToIterateForInvalidation,
getCurrentProgram,
writeLog
writeLog,
readDirectory: (path, extensions, exclude, include, depth?) => directoryStructureHost.readDirectory!(path, extensions, exclude, include, depth),
};
// Cache for the module resolution
const resolutionCache = createResolutionCache(compilerHost, configFileName ?