JetBrains / js-graphql-intellij-plugin

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.
https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/
MIT License
880 stars 95 forks source link

Highlighting fails in language injections #727

Open BoD opened 3 weeks ago

BoD commented 3 weeks ago

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 commented 3 weeks ago

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.