Skip to content

Commit db1b6fe

Browse files
ivanwonderthePunderWoman
authored andcommitted
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 ng-packagr/ng-packagr@c6f6e4d PR Close #45998
1 parent 3242f75 commit db1b6fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/language-service/override_rename_ts_plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function isAngularCore(path: string): boolean {
1313
}
1414

1515
function isExternalAngularCore(path: string): boolean {
16-
return path.endsWith('@angular/core/core.d.ts');
16+
return path.endsWith('@angular/core/core.d.ts') || path.endsWith('@angular/core/index.d.ts');
1717
}
1818

1919
function isInternalAngularCore(path: string): boolean {

0 commit comments

Comments
 (0)