diff --git a/packages/language-service/override_rename_ts_plugin.ts b/packages/language-service/override_rename_ts_plugin.ts index 834394c3594..72c658b3293 100644 --- a/packages/language-service/override_rename_ts_plugin.ts +++ b/packages/language-service/override_rename_ts_plugin.ts @@ -13,7 +13,7 @@ function isAngularCore(path: string): boolean { } function isExternalAngularCore(path: string): boolean { - return path.endsWith('@angular/core/core.d.ts'); + return path.endsWith('@angular/core/core.d.ts') || path.endsWith('@angular/core/index.d.ts'); } function isInternalAngularCore(path: string): boolean {