vscode-graphql icon indicating copy to clipboard operation
vscode-graphql copied to clipboard

Report error when a project has multiple definitions for an operation instead of crashing

Open Cellule opened this issue 1 year ago • 1 comments

Closes #252

The resulting behavior is an error in the console that can the be recovered instead of crashing the server up to 5 times before vs code requires a full reload to resume operations. In my case, devs sometimes copy/paste an operation (it's wrong I know, but it happens). GraphQL Codegen doesn't alert on it because the 2 operations are exactly the same, no harm no foul. But having this extension crash without any meaningful error message makes it really for us to fix our stuff.

I tried a production build and replaced it in my extension folder. This is the result I'm seeing. image

Cellule avatar Jan 22 '25 16:01 Cellule

🦋 Changeset detected

Latest commit: 390f829c1aee9df3401ea9ba51110482e8c42b8e

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

This PR includes changesets to release 1 package
Name Type
vscode-apollo 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

changeset-bot[bot] avatar Jan 22 '25 16:01 changeset-bot[bot]