I checked the Angular package.json files, but the current version is showing there. When I check the Angular language extension, it shows 15.2 which is not the current version. it happened after updating enter image description here
enter image description here I looked at all angular language settingsenter image description here
I guess visual studio code did not accept the update because the version is old. I deleted and re-downloaded it.