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
332 stars 13 forks source link

patch: Increase support of harder to detect `gql.tada` API usage patterns #309

Closed kitten closed 2 months ago

kitten commented 2 months ago

[!NOTE] Marking this as a minor since we already have minor changes queued up and some of the API signatures have changed slightly.

Summary

This aims to reduce the amount of separate templates.has based checks and introduce a new check that can also detect gql.tada via the TypeChecker as a fallback if the name (or expression) of graphql() calls is non-standard.

Set of changes

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: f7962669bb4d2a7e2ffabcec3bb40e2d2a3919da

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 | Minor |

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