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

[graphiql] Syntax highlighting breaks with .graphql as a function #3810

Open
1 task done
MPiland opened this issue Nov 13, 2024 · 1 comment
Open
1 task done

[graphiql] Syntax highlighting breaks with .graphql as a function #3810

MPiland opened this issue Nov 13, 2024 · 1 comment

Comments

@MPiland
Copy link

MPiland commented Nov 13, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When using amplify's graphql api capabilities, the syntax highlighting for anything past the graphql function stops working properly. See screenshot. You can see where the if after .graphql() is yellow instead of the purple like previous as well as the const following that if is white instead of navy blue.

image

Expected Behavior

This should affect graphql syntax, but not affect other highlighting after using a .graphql() function.

Steps To Reproduce

This is in VS Code Insiders 1.96.0 and I'm also using

Environment

  • GraphiQL Version: N/A
  • OS: Windows 11
  • Browser: N/A
  • Bundler: N/A
  • react Version: 18.2.0
  • graphql Version: N/A
  • aws-amplify Version: 6.6.7

Anything else?

No response

@muchisx
Copy link

muchisx commented Nov 26, 2024

Happening to me too, I tracked down the commit

Here:
e9fc21a by @kitten
@acao the release was by you if I'm correct #3540 ?

v1.3.4 works
v.1.3.5 doesn't

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants