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

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

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