-
Notifications
You must be signed in to change notification settings - Fork 95
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
Apollo fragment placeholder in gql template literal removed during format lines #162
Comments
Hi Jakub. Thanks for reporting this. I was initially unable to reproduce this, but it appears to be linked to the use of decorators. |
…lo to preserve them during format lines (#162)
Hi Jakub. This is fixed in 1.7.2, pending JetBrains approval. |
Thank you very much! |
I have the same problem when moving the template literals to another file especially when there are more than one fragment placeholders. |
@stonecold123 Pasting into another file also triggers formatting, so the incoming fix should address this as well. JetBrains typically approves plugin updates within two days, so it's likely that the update will be available today. |
Approved by JetBrains. The 1.7.2 update should be available now when searching for plugin updates. |
After upgrading plugin to 1.7.1, when I run reformat, interpolations are removed from GraphQL template literals.
E.g. if I have such interpolation with fragment from other component:
and then I run reformat:
Interpolation of the fragment is removed from the literal.
The text was updated successfully, but these errors were encountered: