use getCanonicalFileName on path fragments as in other utility methods
This commit is contained in:
parent
3fd9eb5637
commit
a989595044
|
@ -919,9 +919,8 @@ namespace ts {
|
|||
return;
|
||||
}
|
||||
|
||||
const caseSensitive = host.useCaseSensitiveFileNames();
|
||||
for (let i = 0, n = Math.min(commonPathComponents.length, sourcePathComponents.length); i < n; i++) {
|
||||
if (caseSensitive ? commonPathComponents[i] !== sourcePathComponents[i] : commonPathComponents[i].toLocaleLowerCase() !== sourcePathComponents[i].toLocaleLowerCase()) {
|
||||
if (getCanonicalFileName(commonPathComponents[i]) !== getCanonicalFileName(sourcePathComponents[i])) {
|
||||
if (i === 0) {
|
||||
// Failed to find any common path component
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue