Skip to content

build(compiler-cli): update TypeScript 7 language service dependency to 7.1.0-dev - #71936

Draft
atscott wants to merge 3 commits into
angular:mainfrom
atscott:ngp-ls-ts7-upgrade
Draft

atscott wants to merge 3 commits into
angular:mainfrom
atscott:ngp-ls-ts7-upgrade

Conversation

@atscott

@atscott atscott commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Updates the preprocessor language service and VS Code extension from the frozen @typescript/native-preview@7.0.0-dev.20260707.2 build to typescript@7.1.0-dev.20261109.1.

  • Upgrades the TypeScript 7 dependency in packages/compiler-cli/preprocessor/language-service and ngp-vscode-ng-language-service (aliased under @typescript/native-preview so it does not shadow the workspace TypeScript 6 dependency), updates binary lookup to support @typescript/typescript-<platform>-<arch> (tsc), updates subpath imports from /unstable/async to /async, and replaces api.updateSnapshot() with api.getCurrentLanguageServerSnapshot().
  • Simplifies cold-start HTML template project discovery in ProjectManager.resolveTsconfigPath by passing {openFiles: [targetPath]} to api.getCurrentLanguageServerSnapshot instead of reading the companion .ts file from disk and sending a synthetic LSP didOpen.
  • Updates the VS Code extension handshake with typescriptteam.native-preview to use ext.exports.onLanguageServerInitialized((sdk) => sdk.initializeAPIConnection()).

…to 7.1.0-dev

Upgrades the TypeScript 7 dependency in the preprocessor language service
and VS Code extension from the frozen @typescript/native-preview@7.0.0-dev.20260707.2
package to npm:typescript@7.1.0-dev.20261109.1, updates binary lookup for
@typescript/typescript-<platform>-<arch> (tsc), updates subpath imports from
/unstable/async to /async, and replaces api.updateSnapshot() with
api.getCurrentLanguageServerSnapshot().
…th openFiles

Replaces the cold-start companion .ts file disk read and synthetic LSP
didOpen (facade.ensureDocument) in ProjectManager.resolveTsconfigPath with
api.getCurrentLanguageServerSnapshot({openFiles: [targetPath]}), and
disposes previous snapshots when replaced.
@angular-robot angular-robot Bot added area: build & ci Related the build and CI infrastructure of the project area: compiler Issues related to `ngc`, Angular's template compiler labels Nov 10, 2026
@ngbot ngbot Bot added this to the Backlog milestone Nov 10, 2026
…connection

Updates the VS Code extension handshake with typescriptteam.native-preview
to activate the extension and subscribe to
extApi.onLanguageServerInitialized((sdk) => sdk.initializeAPIConnection()),
forwarding the API pipe via angular/setTsApiPipe when the language server
initializes or restarts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build & ci Related the build and CI infrastructure of the project area: compiler Issues related to `ngc`, Angular's template compiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant