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

[IJ Plugin] Rename related generated code when renaming an Operation/Fragment #6227

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

BoD
Copy link
Contributor

@BoD BoD commented Oct 29, 2024

Fix #6220

We previously tried to rename the references only, but this only works if the new name is suffixed by Query etc, because we don't have a way to specify a name per reference.

So now instead we rename the generated code (which will rename the references). That works, but a side effect is a warning about files changed on disk. A bit annoying but acceptable.

Screen.Recording.2024-10-29.at.10.54.38.mov

@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Oct 29, 2024

✅ Docs Preview Ready

No new or changed pages found.

Copy link

netlify bot commented Oct 29, 2024

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit dcb3207
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/6720bf90998e3f0008b80c08

@BoD BoD merged commit f61acdf into main Oct 29, 2024
10 checks passed
@BoD BoD deleted the ij-plugin-rename-operations branch October 29, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IJ Plugin: renaming an operation in the Graph file does not rename the Kotlin usages
3 participants