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

Highlighting fails in language injections #727

Open
BoD opened this issue Oct 29, 2024 · 1 comment
Open

Highlighting fails in language injections #727

BoD opened this issue Oct 29, 2024 · 1 comment

Comments

@BoD
Copy link
Contributor

BoD commented Oct 29, 2024

Description

Using IJ language injections, it happens very often (always?) that highlighting fails.

One recent example:

Screenshot 2024-10-29 at 17 31 49

Feels like this example should work out of the box because it's a self contained document.

Other cases are less clear. For an example, with an executable document:

{
  user {
    name
    unknownField
  }
}

SInce there's no schema to validate against, it'd be fine to show an error here but my preferred solution would be to only check the syntax, no the actual validation.

Version and Environment Details
Operation system: MacOS
IDE name and version: IntelliJ IDEA 2024.2.4
Plugin version: 242.21829.3

@vepanimas
Copy link
Collaborator

vepanimas commented Oct 30, 2024

Are there any GraphQL configuration files in this project? If so, could you please verify if adding the file path in schema resolves the issue.

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

No branches or pull requests

2 participants