We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ca5ae commit 975f10cCopy full SHA for 975f10c
src/services/services.ts
@@ -5522,7 +5522,7 @@ module ts {
5522
if (defaultLibFileName) {
5523
for (var i = 0; i < declarations.length; i++) {
5524
var sourceFile = declarations[i].getSourceFile();
5525
- if (sourceFile && ts.normalizePath(sourceFile.fileName) === ts.normalizePath(defaultLibFileName)) {
+ if (sourceFile && getCanonicalFileName(ts.normalizePath(sourceFile.fileName)) === getCanonicalFileName(ts.normalizePath(defaultLibFileName))) {
5526
return getRenameInfoError(getLocaleSpecificMessage(Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library.key));
5527
}
5528
0 commit comments