Revert "fix(compiler-cli): ensure getRootDirs() handles case-sensitivity (#36968)" (#37003)

This reverts commit 5bddeea559754283d6f51741741a313f8f4c20be.

The changes to the case-sensitivity handling in #36968 caused multiple
projects to fail to build. See #36992, #36993 and #37000.

The issue is related to the logical path handling. But it is felt that
it is safer to revert the entire PR and then to investigate further.

PR Close #37003
This commit is contained in:
Pete Bacon Darwin 2020-05-08 13:34:02 +01:00 committed by Alex Rickabaugh
parent 0fc0d9bb3d
commit 4423ab5109

View File

@ -105,7 +105,7 @@ export function getRootDirs(host: ts.CompilerHost, options: ts.CompilerOptions):
// See:
// https://github.com/Microsoft/TypeScript/blob/3f7357d37f66c842d70d835bc925ec2a873ecfec/src/compiler/sys.ts#L650
// Also compiler options might be set via an API which doesn't normalize paths
return rootDirs.map(rootDir => absoluteFrom(host.getCanonicalFileName(rootDir)));
return rootDirs.map(rootDir => absoluteFrom(rootDir));
}
export function nodeDebugInfo(node: ts.Node): string {