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(diag): directive miss report with multiple documents #293

Closed JoviDeCroock closed 3 months ago

JoviDeCroock commented 3 months ago

Fixes https://github.com/0no-co/gql.tada/issues/217

The global regex was aggregating state hence when two directives popped up in different documents this failed.

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: 18957816669072d5401df66be6f6149e29d95572

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