Fix implicit glob detection when ancestor directory contains . (#47418)

This commit is contained in:
Andrew Branch
2022-01-13 15:33:38 -08:00
committed by GitHub
parent ce18254c77
commit a158b7ed7d
2 changed files with 10 additions and 1 deletions

View File

@@ -3509,7 +3509,7 @@ namespace ts {
? WatchDirectoryFlags.Recursive : WatchDirectoryFlags.None
};
}
if (isImplicitGlob(spec)) {
if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) {
return {
key: useCaseSensitiveFileNames ? spec : toFileNameLowerCase(spec),
flags: WatchDirectoryFlags.Recursive