mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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
This commit is contained in:
committed by
Jessica Janiuk
parent
3242f75efe
commit
db1b6fe657
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user