Fix the implicit glob key so that recursive keys are not differing just directory separator for wildcard directory (#49246)

* Add failing test

* Fix the implicit glob key so that recursive keys are not differing just by directory seperator
Fixes #49078

* Reset the reload level once program is loaded
This commit is contained in:
Sheetal Nandi
2022-05-25 12:30:40 -07:00
committed by GitHub
parent 1fb2b2d70f
commit 0ad5f82d62
5 changed files with 432 additions and 1 deletions
+1 -1
View File
@@ -3548,7 +3548,7 @@ namespace ts {
}
if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) {
return {
key: useCaseSensitiveFileNames ? spec : toFileNameLowerCase(spec),
key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames ? spec : toFileNameLowerCase(spec)),
flags: WatchDirectoryFlags.Recursive
};
}