FileWatcher - handle empty directory path as the current directory Fixes #14559
This commit is contained in:
parent
48d5485379
commit
51e9aef2a7
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ namespace ts {
|
|||
return;
|
||||
}
|
||||
watcher = _fs.watch(
|
||||
dirPath,
|
||||
dirPath || ".",
|
||||
{ persistent: true },
|
||||
(eventName: string, relativeFileName: string) => fileEventHandler(eventName, relativeFileName, dirPath)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue