graphql / vscode-graphql

MIGRATED: VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
https://marketplace.visualstudio.com/items?itemName=Prisma.vscode-graphql
MIT License
555 stars 71 forks source link

Cannot go to definition of type used in fragment #38

Closed marktani closed 4 years ago

marktani commented 6 years ago

In queries/queries.graphql.

fragment ExperienceFragment on Experience {
  id
  title
  category {
    mainColor
    name
  }
  slug
  numRatings
  avgRating
  pricePerPerson
}

CMD+Click on Experience should go to Experience definition in src/schema.graphql.

https://github.com/prismagraphql/graphql-server-example

divyenduz commented 6 years ago

This works as soon as I change schema.graphql and it is re-read by language service. Most likely, this is a bug with reading relevant graphql files.

acao commented 4 years ago

confirmed this is working for me. make sure that you include these files using the documents field in graphql-config@3, formerly known as include