Skip to content

DerPlayer2001/graphiql-lsp-server-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No releases published

Packages

No packages published