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

fix(persisted): use full resolved text in hash (#327)

Co-authored-by: Jovi De Croock <decroockjovi@gmail.com>

authored by

Fela Maslen
Jovi De Croock
and committed by
GitHub
aff82c2b 178858ad

+6 -1
+5
.changeset/small-toys-bow.md
··· 1 + --- 2 + '@0no-co/graphqlsp': patch 3 + --- 4 + 5 + Use resolved document text when generating the persisted hash
+1 -1
packages/graphqlsp/src/persisted.ts
··· 187 187 resolvedText = `${resolvedText}\n\n${print(fragmentDefinition)}`; 188 188 }); 189 189 190 - return createHash('sha256').update(text).digest('hex'); 190 + return createHash('sha256').update(resolvedText).digest('hex'); 191 191 }; 192 192 193 193 export const getDocumentReferenceFromTypeQuery = (