Mirror: TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(core): switch error message for missing-operation-name (#290)

authored by

Jovi De Croock and committed by
GitHub
45fe6613 8f72977e

+6 -1
+5
.changeset/plenty-lizards-explain.md
··· 1 + --- 2 + "@0no-co/graphqlsp": patch 3 + --- 4 + 5 + switch error message for missing operation-name to not allude to typegen
+1 -1
packages/graphqlsp/src/diagnostics.ts
··· 456 456 ) as OperationDefinitionNode; 457 457 if (!op.name) { 458 458 graphQLDiagnostics.push({ 459 - message: 'Operation needs a name for types to be generated.', 459 + message: 'Operation should contain a name.', 460 460 start: node.getStart(), 461 461 code: MISSING_OPERATION_NAME_CODE, 462 462 length: originalNode.getText().length,