Skip to content

Commit 3b3f189

Browse files
committed
fix(language-server): Fix detection of Angular for v14+ projects
In v14, the .d.ts file for angular core is now "index.d.ts" rather than "core.d.ts". fixes #1657
1 parent 7ddbde3 commit 3b3f189

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)