0no-co / GraphQLSP

TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.
https://gql-tada.0no.co
MIT License
366 stars 14 forks source link

fix(lsp): nested call expressions #319

Closed JoviDeCroock closed 4 months ago

JoviDeCroock commented 4 months ago

This adds support for inline defined graphql-strings, auto-complete and quick-info always worked however diagnostics/... did not.

useQuery({ query: graphql(``) })

This is slightly less performant as we traverse deeper but seems worth it

Fixes #316

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: a0bf5bef1d13b5ce654d05b9ff2543a5001cca33

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------------- | ----- | | @0no-co/graphqlsp | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR