Properly report external filenames

This commit is contained in:
Ryan Cavanaugh
2017-08-29 10:22:36 -07:00
parent 67f2716156
commit 3bd4c4f847
3 changed files with 11 additions and 5 deletions

View File

@@ -1659,7 +1659,7 @@ namespace ts {
}
export function isRootedDiskPath(path: string) {
return getRootLength(path) !== 0;
return path && getRootLength(path) !== 0;
}
export function convertToRelativePath(absoluteOrRelativePath: string, basePath: string, getCanonicalFileName: (path: string) => string): string {