-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Use local symbol rather then target symbol for tracking reused references #59493
Merged
weswigham
merged 2 commits into
microsoft:main
from
weswigham:add-missinging-reverse-lookup-type
Jul 31, 2024
Merged
Use local symbol rather then target symbol for tracking reused references #59493
weswigham
merged 2 commits into
microsoft:main
from
weswigham:add-missinging-reverse-lookup-type
Jul 31, 2024
Conversation
This file contains 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
typescript-bot
added
Author: Team
For Milestone Bug
PRs that fix a bug with a specific milestone
labels
Jul 31, 2024
weswigham
changed the title
Add missinging reverse lookup type
Use local symbol rather then target symbol for tracking reused references
Jul 31, 2024
jakebailey
approved these changes
Jul 31, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, nice; theoretically I think we want this for another 5.5 patch if we're doing one.
@typescript-bot cherry-pick this to release-5.5 |
typescript-bot
pushed a commit
that referenced
this pull request
Aug 1, 2024
Hey, @jakebailey! I've created #59502 for you. |
Was the original issue actually a 5.5 regression? |
Yes, the regressing PR was #57887 |
DanielRosenwasser
pushed a commit
that referenced
this pull request
Aug 8, 2024
…e-5.5 (#59502) Co-authored-by: Wesley Wigham <wewigham@microsoft.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #59470
When we started reusing the node from the target file (since it refers to the same thing as the local name), we accidentally stopped marking the local reference to that thing as used for the output. By swapping which symbol we track to the local version, we ensure we track the references we need to keep in the output.