Skip to content

Commit b9bd0d9

Browse files
authored
Merge pull request microsoft#26451 from Microsoft/nonRecursiveOnHostsWithoutRecursiveSupport
Return the nonrecursive directory watcher correctly on platforms that dont support recrusive directory watching
2 parents 29ca93b + 512a49b commit b9bd0d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compiler/sys.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,7 @@ namespace ts {
756756
if (recursive) {
757757
return watchDirectoryRecursively(directoryName, callback);
758758
}
759-
watchDirectory(directoryName, callback);
760-
return undefined!; // TODO: GH#18217
759+
return watchDirectory(directoryName, callback);
761760
};
762761
}
763762

0 commit comments

Comments
 (0)