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

Retain and insert comments added to a replacement template #88

Open
timtebeek opened this issue Apr 26, 2024 · 1 comment
Open

Retain and insert comments added to a replacement template #88

timtebeek opened this issue Apr 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@timtebeek
Copy link
Contributor

timtebeek commented Apr 26, 2024

What problem are you trying to solve?

Sometimes it's helpful to insert context to a code changes through the use of comments in a replacement template.

Describe the solution you'd like

Any comments in replacement templates, whether single line or multi line, retained and inserted along with the code change.

Alternatives

Folks can copy the generated recipe from target/ or build/ into src/ and add the comments there.

Additional context

This came up as a request through internal channels; logged as an issue here to track progress towards that.

@timtebeek timtebeek added the enhancement New feature or request label Apr 26, 2024
@timtebeek timtebeek moved this to Backlog in OpenRewrite Apr 26, 2024
@Philzen
Copy link

Philzen commented Jun 20, 2024

I believe solving may go hand-in-hand with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants