Skip to content

Handle empty directory path as the current directory Fixes #14559#17658

Merged
rbuckton merged 1 commit into
microsoft:masterfrom
Knagis:14559-non-polling-watcher
Aug 9, 2017
Merged

Handle empty directory path as the current directory Fixes #14559#17658
rbuckton merged 1 commit into
microsoft:masterfrom
Knagis:14559-non-polling-watcher

Conversation

@Knagis
Copy link
Copy Markdown
Contributor

@Knagis Knagis commented Aug 7, 2017

Fixes #14559

A very simple fix for the non-polling watcher. As described in the issue, it fails because getDirectoryPath("filename") returns "" which cannot be passed to fs.watch().

@Knagis Knagis force-pushed the 14559-non-polling-watcher branch from ee2756e to 51e9aef Compare August 8, 2017 06:33
Copy link
Copy Markdown
Contributor

@rbuckton rbuckton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the contribution!

@rbuckton rbuckton merged commit 73f941d into microsoft:master Aug 9, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running tsc -w -p . with TSC_NONPOLLING_WATCHER = true leads to an fs.watch error

3 participants