FileWatcher - handle empty directory path as the current directory Fixes #14559

This commit is contained in:
Karlis Gangis 2017-08-08 09:32:37 +03:00
parent 48d5485379
commit 51e9aef2a7

View file

@ -153,7 +153,7 @@ namespace ts {
return;
}
watcher = _fs.watch(
dirPath,
dirPath || ".",
{ persistent: true },
(eventName: string, relativeFileName: string) => fileEventHandler(eventName, relativeFileName, dirPath)
);