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 97 forks source link

"repeatable" field name breaks plugin #600

Closed aldis-ameriks closed 2 years ago

aldis-ameriks commented 2 years ago

Having repeatable as a field name breaks syntax highlighting and is seen as an unexpected error by the plugin.

type Foo {
  repeatable: Boolean
}

Plugin version: 3.1.2

mrsimb commented 2 years ago

I'm having the same issue: syntax highlighting on schema file breaks, schema validation doesn't work, and "Problems" tab is filled with errors. Every type that is defined after this line is not picked up by schema validator, resulting in "The field type B is not present when resolving type A" error.

изображение

Also, notice the lack of indentation on any lines that are below the line with repeatable field in schema file.

Plugin version: 3.1.4