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

@octokit/graphql-schema not working #692

Open antonmedv opened 9 months ago

antonmedv commented 9 months ago

Describe the bug For some reason schema not working, but if I put same file in project files - it works.

To Reproduce Link to Repo with Reproduction or Steps to Reproduce: Install npm i @octokit/graphql-schema

Setup with:

schema: node_modules/@octokit/graphql-schema/schema.graphql
extensions:
  endpoints:
    GitHub:
      url: https://api.github.com/graphql
      headers:
        Authorization: bearer ${GITHUB_TOKEN}

Expected behavior Schema works

Screenshots

Screenshot 2023-10-03 at 15 01 54

Version and Environment Details

Operation system: macOs IDE name and version: latest (Just updated) Plugin version: latest (Just updated)

Additional context Add any other context about the problem here.

antonmedv commented 9 months ago

Those two files are the same:

Screenshot 2023-10-03 at 15 05 14 Screenshot 2023-10-03 at 15 04 28
vepanimas commented 8 months ago

Unfortunately, it's a known issue, and it's not fixed yet. Schemas from node_modules are ignored. Probably you could try to select a directory with a schema and mark it as "Not excluded", but I'm not sure if it will fix the issue in your case. A related issue is https://github.com/JetBrains/js-graphql-intellij-plugin/issues/422.

antonmedv commented 8 months ago

Thanks for the clarification.