Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(migrations): more robust trailing comma removal in unused imports migration #62118

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

crisbeto
Copy link
Member

Fixes the following issues with the logic in the unused imports migration that deals with trailing commas:

  1. It was generating overlapping text ranges which can break internally.
  2. It wasn't handling some cases that produce trailing commas.

… migration

Fixes the following issues with the logic in the unused imports migration that deals with trailing commas:
1. It was generating overlapping text ranges which can break internally.
2. It wasn't handling some cases that produce trailing commas.
@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jun 18, 2025
@angular-robot angular-robot bot added the area: migrations Issues related to `ng update` migrations label Jun 18, 2025
@ngbot ngbot bot added this to the Backlog milestone Jun 18, 2025
@crisbeto crisbeto marked this pull request as ready for review June 18, 2025 13:20
@pkozlowski-opensource pkozlowski-opensource added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jun 18, 2025
@pkozlowski-opensource
Copy link
Member

This PR was merged into the repository by commit 34adfde.

The changes were merged into the following branches: main, 20.0.x

pkozlowski-opensource pushed a commit that referenced this pull request Jun 18, 2025
… migration (#62118)

Fixes the following issues with the logic in the unused imports migration that deals with trailing commas:
1. It was generating overlapping text ranges which can break internally.
2. It wasn't handling some cases that produce trailing commas.

PR Close #62118
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: migrations Issues related to `ng update` migrations target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants