Skip to content

Fix the getCanonicalFileName in sys.ts and also check null value in f…#6509

Merged
zhengbli merged 2 commits into
microsoft:masterfrom
zhengbli:fixPathForWatcher
Jan 16, 2016
Merged

Fix the getCanonicalFileName in sys.ts and also check null value in f…#6509
zhengbli merged 2 commits into
microsoft:masterfrom
zhengbli:fixPathForWatcher

Conversation

@zhengbli
Copy link
Copy Markdown

…ile watcher call back

This PR fixes the getCanonicalFileName function used in sys.ts for file systems using case sensitive file names. Also added checking for null for file watcher callbacks as node sometimes will pass null as a parameter value.

Comment thread src/compiler/sys.ts Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

typeof relativeFileName !== "string"?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Jan 16, 2016

👍 with my minor comments.

zhengbli pushed a commit that referenced this pull request Jan 16, 2016
Fix the getCanonicalFileName in sys.ts and also check null value in f…
@zhengbli zhengbli merged commit a24900e into microsoft:master Jan 16, 2016
@zhengbli zhengbli deleted the fixPathForWatcher branch January 16, 2016 01:32
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 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.

4 participants