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 authored and GitHub committed 2022-05-25 12:30:40 -07:00
1 parent 1fb2b2d70f
commit 0ad5f82d62
5 files changed
+432 -1

No files matched your search

+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
};
}