Skip to content

fix: update default Angular LS and TypeScript versions#84

Open
pmig wants to merge 1 commit intonathansbradshaw:mainfrom
pmig:fix/update-default-versions
Open

fix: update default Angular LS and TypeScript versions#84
pmig wants to merge 1 commit intonathansbradshaw:mainfrom
pmig:fix/update-default-versions

Conversation

@pmig
Copy link
Contributor

@pmig pmig commented Feb 25, 2026

This actually a series a fixes to make that extension work again. You can try out the extension locally over at https://github.com/pmig/zed-angular. Although most of the code was written by claude, I (@pmig) manually reviewed and tested it.

Summary

  • Updates @angular/language-server default from 19.0.4 to 21.1.5
  • Updates typescript default from 5.7.3 to 5.9.3

Angular v21 moved type declarations from @angular/core/core.d.ts to @angular/core/types/core.d.ts. The v19 language server's project detection uses path.endsWith("@angular/core/core.d.ts") which no longer matches, causing it to disable the language service entirely with the message: "project is not an Angular project ('@angular/core' could not be found)".

The v21 language server uses a regex (/@angular\/core\/.+\.d\.ts$/) that correctly matches the new path structure.

This is the root cause of autocompletion and diagnostics not working for Angular v21+ projects.

Closes #77
Relates to #69

Update @angular/language-server from 19.0.4 to 21.1.5 and TypeScript
from 5.7.3 to 5.9.3.

Angular v21 moved type declarations from @angular/core/core.d.ts to
@angular/core/types/core.d.ts. The v19 language server's project
detection checks for path.endsWith("@angular/core/core.d.ts") which
no longer matches, causing it to disable the language service with
"project is not an Angular project ('@angular/core' could not be
found)". The v21 language server uses a regex that matches any .d.ts
file under @angular/core/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 25, 2026 13:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the default versions of Angular Language Server and TypeScript dependencies to support Angular v21+ projects. Angular v21 changed the location of type declarations from @angular/core/core.d.ts to @angular/core/types/core.d.ts, which breaks project detection in the v19 language server. The v21 language server uses a regex pattern that correctly handles the new path structure.

Changes:

  • Updates @angular/language-server default version from 19.0.4 to 21.1.5
  • Updates typescript default version from 5.7.3 to 5.9.3

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No error reporting / autocompletion

2 participants