mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
FileWatcher - handle empty directory path as the current directory Fixes #14559
This commit is contained in:
@@ -153,7 +153,7 @@ namespace ts {
|
||||
return;
|
||||
}
|
||||
watcher = _fs.watch(
|
||||
dirPath,
|
||||
dirPath || ".",
|
||||
{ persistent: true },
|
||||
(eventName: string, relativeFileName: string) => fileEventHandler(eventName, relativeFileName, dirPath)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user