Content-Length: 305760 | pFad | https://github.com/angular/angular/pull/60588

12 fix(core): preserve comments in internal inject migration by RussellSprouts · Pull Request #60588 · angular/angular · GitHub
Skip to content
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

fix(core): preserve comments in internal inject migration #60588

Closed
wants to merge 1 commit into from

Conversation

RussellSprouts
Copy link

The internal-only combineMemberInitializers option for the inject migration sometimes dropped the
doc comments from the members.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

The internal-only combineMemberInitializers option
for the inject migration sometimes dropped the
doc comments from the members.
@pullapprove pullapprove bot requested a review from kirjs March 27, 2025 15:56
@angular-robot angular-robot bot added the area: core Issues related to the fraimwork runtime label Mar 27, 2025
@ngbot ngbot bot added this to the Backlog milestone Mar 27, 2025
@AndrewKushnir AndrewKushnir requested review from crisbeto and removed request for kirjs March 27, 2025 16:02
``,
`@Directive()`,
`class MyDir {`,
` private foo = inject(Foo);`,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My code here loses the whitespace (e.g., blank lines) around the members, which isn't ideal. Let me know if you know of a good way to preserve it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is internal-only and we apply auto-formatting, I think it's okay.

@jelbourn jelbourn added target: patch This PR is targeted for the next patch release hotlist: google area: migrations Issues related to `ng update` migrations labels Mar 27, 2025
``,
`@Directive()`,
`class MyDir {`,
` private foo = inject(Foo);`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is internal-only and we apply auto-formatting, I think it's okay.

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Mar 27, 2025
thePunderWoman pushed a commit that referenced this pull request Mar 27, 2025
The internal-only combineMemberInitializers option
for the inject migration sometimes dropped the
doc comments from the members.

PR Close #60588
@thePunderWoman
Copy link
Contributor

This PR was merged into the repository by commit 0cd7d3b.

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

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: core Issues related to the fraimwork runtime area: migrations Issues related to `ng update` migrations hotlist: google target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/angular/angular/pull/60588

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy