Properly report external filenames

This commit is contained in:
Ryan Cavanaugh committed 2017-09-13 15:19:07 -07:00
1 parent 67f2716156
commit 3bd4c4f847
3 files changed
+11 -5

No files matched your search

+1 -1
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 {