Skip to content

Commit 51e9aef

Browse files
committed
FileWatcher - handle empty directory path as the current directory Fixes microsoft#14559
1 parent 48d5485 commit 51e9aef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/sys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ namespace ts {
153153
return;
154154
}
155155
watcher = _fs.watch(
156-
dirPath,
156+
dirPath || ".",
157157
{ persistent: true },
158158
(eventName: string, relativeFileName: string) => fileEventHandler(eventName, relativeFileName, dirPath)
159159
);

0 commit comments

Comments
 (0)