We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fd9eb5 commit a989595Copy full SHA for a989595
1 file changed
src/compiler/program.ts
@@ -919,9 +919,8 @@ namespace ts {
919
return;
920
}
921
922
- const caseSensitive = host.useCaseSensitiveFileNames();
923
for (let i = 0, n = Math.min(commonPathComponents.length, sourcePathComponents.length); i < n; i++) {
924
- if (caseSensitive ? commonPathComponents[i] !== sourcePathComponents[i] : commonPathComponents[i].toLocaleLowerCase() !== sourcePathComponents[i].toLocaleLowerCase()) {
+ if (getCanonicalFileName(commonPathComponents[i]) !== getCanonicalFileName(sourcePathComponents[i])) {
925
if (i === 0) {
926
// Failed to find any common path component
927
return true;
0 commit comments