From 51e9aef2a7362cd82fce55901d0de82c521a8a89 Mon Sep 17 00:00:00 2001 From: Karlis Gangis Date: Tue, 8 Aug 2017 09:32:37 +0300 Subject: [PATCH] FileWatcher - handle empty directory path as the current directory Fixes #14559 --- src/compiler/sys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 89cfb074bff..8a4c4ad22cc 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -153,7 +153,7 @@ namespace ts { return; } watcher = _fs.watch( - dirPath, + dirPath || ".", { persistent: true }, (eventName: string, relativeFileName: string) => fileEventHandler(eventName, relativeFileName, dirPath) );