mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-13 20:45:51 -05:00
Fix implicit glob detection when ancestor directory contains . (#47418)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user