Skip to content

Commit 5bcf861

Browse files
committed
use relative path from current directory
1 parent b24f8f3 commit 5bcf861

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/compiler/program.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,9 @@ namespace ts {
947947
return currentDirectory;
948948
}
949949

950-
return getNormalizedPathFromPathComponents(commonPathComponents);
950+
const path = getNormalizedPathFromPathComponents(commonPathComponents);
951+
const relativePath = convertToRelativePath(path, currentDirectory, getCanonicalFileName);
952+
return relativePath;
951953
}
952954

953955
function checkSourceFilesBelongToPath(sourceFiles: SourceFile[], rootDirectory: string): boolean {

0 commit comments

Comments
 (0)