Skip to content

Commit e7cf999

Browse files
committed
Implement readDirectory on the watch mode CompilerHost
1 parent f6321bf commit e7cf999

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)