Skip to content

Commit 5fd51d5

Browse files
authored
fix(language-server): Fix detection of Angular for v14+ projects (#1660)
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 1f40650 commit 5fd51d5

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
@@ -1245,7 +1245,7 @@ function isAngularCore(path: string): boolean {
12451245
}
12461246

12471247
function isExternalAngularCore(path: string): boolean {
1248-
return path.endsWith('@angular/core/core.d.ts');
1248+
return path.endsWith('@angular/core/core.d.ts') || path.endsWith('@angular/core/index.d.ts');
12491249
}
12501250

12511251
function isInternalAngularCore(path: string): boolean {

0 commit comments

Comments
 (0)