Skip to content

Commit d519e3f

Browse files
committed
hand over to LanguageServiceHost.readDirectory
1 parent 3806ee7 commit d519e3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/services.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,10 @@ namespace ts {
12171217
getDirectories: path => {
12181218
return host.getDirectories ? host.getDirectories(path) : [];
12191219
},
1220+
readDirectory(path, extensions, exclude, include, depth) {
1221+
Debug.assertDefined(host.readDirectory, "'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'");
1222+
return host.readDirectory!(path, extensions, exclude, include, depth);
1223+
},
12201224
onReleaseOldSourceFile,
12211225
hasInvalidatedResolution,
12221226
hasChangedAutomaticTypeDirectiveNames: host.hasChangedAutomaticTypeDirectiveNames

0 commit comments

Comments
 (0)