Skip to content

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

graphiql-lsp-server-issue

Minimal Project to reproduce graphql/graphiql#3620

Steps to reproduce

  1. Clone this repository
  2. Use VSCode with the GraphQL.vscode-graphql extension on Version 0.12.1
  3. Run npm install
  4. only open src/main.ts (make sure to not have the src/fragment.ts open)
  5. Use ctrl+shift+p and select Developer: Reload Window
  6. BarFragment will show the Error Unknown fragment "BarFragment".GraphQL: Validatio

Expected behavior

With GraphQL.vscode-graphql extension on Version 0.9.3 it properly recognizes the fragment BarFragment and does not show any errors.

Disclaimer

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.

Releases

Packages

Used by

Contributors

Languages