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

fix(graphqlsp): Fix resolving fragments as assignments #322

Closed kitten closed 1 month ago

kitten commented 1 month ago

Resolves #321

Summary

This fixes resolving fragments from binary assignments, even if the fragment is referenced as an identifier, e.g.

x.fragment = Fragment;
x.y.fragment = Fragment;
x.y.fragment = graphql(/*...*/);

Set of changes

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: d536a96c41142bee02b48a48a41d1933475280c5

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