-
Notifications
You must be signed in to change notification settings - Fork 26.6k
refactor(language-service): Make a variety of fixes to the language service to build in g3 #54726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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).
clydin
approved these changes
Mar 6, 2024
atscott
approved these changes
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+.
caretaker: no impact on g3, since LS is not yet used in g3 |
This PR was merged into the repository by commit ef39107. |
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
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 (becausenoPropertyAccessFromIndexSignature
is on in g3).absoluteFrom
frompackages/compiler-cli/index.ts
, since the*
re-export is patched out in g3.isolatedModules
(which is on in g3).tsserverlibrary
->typescript
(blog post)