Update src/compiler/sys.ts

Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
This commit is contained in:
Sheetal Nandi 2019-08-09 14:00:40 -07:00 committed by GitHub
parent 8d902ad75f
commit d6f768d3ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1109,7 +1109,7 @@ namespace ts {
function callbackChangingToMissingFileSystemEntry(event: "rename" | "change", relativeName: string | undefined) {
// because relativeName is not guaranteed to be correct we need to check on each rename with few combinations
// Eg on ubuntoo while watchin app/node_modules the relativeName is "node_modules" which is neither relative nor full path
// Eg on ubuntu while watching app/node_modules the relativeName is "node_modules" which is neither relative nor full path
return event === "rename" &&
(!relativeName ||
relativeName === lastDirectoryPart ||