Skip to content

Commit 975f10c

Browse files
committed
Adding getCanonicalFileName to ensure case-sensitive systems do not have issues
1 parent 93ca5ae commit 975f10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5522,7 +5522,7 @@ module ts {
55225522
if (defaultLibFileName) {
55235523
for (var i = 0; i < declarations.length; i++) {
55245524
var sourceFile = declarations[i].getSourceFile();
5525-
if (sourceFile && ts.normalizePath(sourceFile.fileName) === ts.normalizePath(defaultLibFileName)) {
5525+
if (sourceFile && getCanonicalFileName(ts.normalizePath(sourceFile.fileName)) === getCanonicalFileName(ts.normalizePath(defaultLibFileName))) {
55265526
return getRenameInfoError(getLocaleSpecificMessage(Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library.key));
55275527
}
55285528
}

0 commit comments

Comments
 (0)