Skip to content

Commit 83fe1ea

Browse files
authored
Merge pull request #27170 from weswigham/fix-build-assert
Implement readDirectory on the watch mode CompilerHost
2 parents f6321bf + e7cf999 commit 83fe1ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/watch.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,8 @@ namespace ts {
546546
},
547547
maxNumberOfFilesToIterateForInvalidation: host.maxNumberOfFilesToIterateForInvalidation,
548548
getCurrentProgram,
549-
writeLog
549+
writeLog,
550+
readDirectory: (path, extensions, exclude, include, depth?) => directoryStructureHost.readDirectory!(path, extensions, exclude, include, depth),
550551
};
551552
// Cache for the module resolution
552553
const resolutionCache = createResolutionCache(compilerHost, configFileName ?

0 commit comments

Comments
 (0)