use relative path from current directory

This commit is contained in:
Wesley Wigham
2015-11-12 15:58:11 -08:00
parent b24f8f35b7
commit 5bcf861121
+3 -1
View File
@@ -947,7 +947,9 @@ namespace ts {
return currentDirectory;
}
return getNormalizedPathFromPathComponents(commonPathComponents);
const path = getNormalizedPathFromPathComponents(commonPathComponents);
const relativePath = convertToRelativePath(path, currentDirectory, getCanonicalFileName);
return relativePath;
}
function checkSourceFilesBelongToPath(sourceFiles: SourceFile[], rootDirectory: string): boolean {