Skip to content

Commit d8babe5

Browse files
authored
fix(language-server): Fix detection of Angular for v14+ projects (#1658)
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 fixes #1657
1 parent 7ddbde3 commit d8babe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/session.ts

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

12661266
function isExternalAngularCore(path: string): boolean {
1267-
return path.endsWith('@angular/core/core.d.ts');
1267+
return path.endsWith('@angular/core/core.d.ts') || path.endsWith('@angular/core/index.d.ts');
12681268
}
12691269

12701270
function isInternalAngularCore(path: string): boolean {

0 commit comments

Comments
 (0)