Skip to content

Conversation

dylhunn
Copy link
Contributor

@dylhunn dylhunn commented Mar 6, 2024

The following changes help the language service code build in g3:

  • Omit<T> produces an index signature, so we must access the resulting properties with square bracket (because noPropertyAccessFromIndexSignature is on in g3).
  • Explicitly export absoluteFrom from packages/compiler-cli/index.ts, since the * re-export is patched out in g3.
  • Remove const from a few const enums, since accessing const enums across modules is not compatible with isolatedModules (which is on in g3).
  • Replace tsserverlibrary -> typescript (blog post)

@dylhunn dylhunn added area: language-service Issues related to Angular's VS Code language service target: minor This PR is targeted for the next minor release labels Mar 6, 2024
@dylhunn dylhunn requested review from atscott and clydin March 6, 2024 18:30
@ngbot ngbot bot added this to the Backlog milestone Mar 6, 2024
@dylhunn dylhunn added the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 6, 2024
@dylhunn dylhunn marked this pull request as ready for review March 6, 2024 18:30
…ervice to build in g3.

The following changes help the language service code build in g3:
* `Omit<T>` produces an index signature, so we must access the resulting properties with square bracket (because `noPropertyAccessFromIndexSignature` is on in g3).
* Explicitly export `absoluteFrom` from `packages/compiler-cli/index.ts`, since the `*` re-export is patched out in g3.
* Remove const from a few const enums, since accessing const enums across modules is not compatible with `isolatedModules` (which is on in g3).
@dylhunn dylhunn added target: major This PR is targeted for the next major release and removed target: minor This PR is targeted for the next minor release labels Mar 6, 2024
@dylhunn dylhunn added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note and removed merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Mar 6, 2024
Typescript recently consolidated `tsserverlibrary` into `typescript`: [blog post](https://devblogs.microsoft.com/typescript/announcing-typescript-5-3/#consolidation-between-tsserverlibrary-js-and-typescript-js)

In this commit, we remove all references to `tsserverlibrary` accordingly. This should be safe, since v18 and later support TS 5.3+.
@dylhunn dylhunn added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Mar 6, 2024
@dylhunn
Copy link
Contributor Author

dylhunn commented Mar 6, 2024

caretaker: no impact on g3, since LS is not yet used in g3

@atscott
Copy link
Contributor

atscott commented Mar 7, 2024

This PR was merged into the repository by commit ef39107.

@atscott atscott closed this in 126879e Mar 7, 2024
atscott pushed a commit that referenced this pull request Mar 7, 2024
…#54726)

Typescript recently consolidated `tsserverlibrary` into `typescript`: [blog post](https://devblogs.microsoft.com/typescript/announcing-typescript-5-3/#consolidation-between-tsserverlibrary-js-and-typescript-js)

In this commit, we remove all references to `tsserverlibrary` accordingly. This should be safe, since v18 and later support TS 5.3+.

PR Close #54726
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker action: review The PR is still awaiting reviews from at least one requested reviewer area: language-service Issues related to Angular's VS Code language service merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants