Skip to content

Commit 73f941d

Browse files
authored
Merge pull request microsoft#17658 from Knagis/14559-non-polling-watcher
Handle empty directory path as the current directory Fixes microsoft#14559
2 parents 81e1e26 + 51e9aef commit 73f941d

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)