From db1b6fe6578b4d43379506207192846de30727e3 Mon Sep 17 00:00:00 2001 From: ivanwonder Date: Sat, 14 May 2022 13:07:42 +0800 Subject: [PATCH] fix(language-service): Fix detection of Angular for v14+ projects (#45998) In v14, the .d.ts file for angular core is now "index.d.ts" rather than "core.d.ts". This change happened in https://github.com/ng-packagr/ng-packagr/commit/c6f6e4d701d31e3d9e8636703ede731c3790778b PR Close #45998 --- packages/language-service/override_rename_ts_plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {