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

minor fix to avoid error message in the logs (#214)

Changed files
+6
.changeset
packages
graphqlsp
src
ast
+5
.changeset/rotten-frogs-crash.md
···
+
---
+
"@0no-co/graphqlsp": patch
+
---
+
+
minor fix to avoid error message in the logs
+1
packages/graphqlsp/src/ast/index.ts
···
}
const def = definitions[0];
+
if (!def) return fragments;
const src = getSource(info, def.fileName);
if (!src) return fragments;