Minimal Project to reproduce graphql/graphiql#3620
- Clone this repository
- Use VSCode with the
GraphQL.vscode-graphqlextension on Version0.12.1 - Run
npm install - only open
src/main.ts(make sure to not have thesrc/fragment.tsopen) - Use
ctrl+shift+pand selectDeveloper: Reload Window BarFragmentwill show the ErrorUnknown fragment "BarFragment".GraphQL: Validatio
With GraphQL.vscode-graphql extension on Version 0.9.3 it properly recognizes the fragment BarFragment and does not show any errors.
This is not supposed to be code that actually executes gql queries, it is just a minimal project to reproduce the issue, normally i would additionally use (graphql codegen)[https://the-guild.dev/graphql/codegen] to generate typescript types for the gql queries and fragments.