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.

Fix setting `shouldCheckForColocatedFragments` to `false` falling back to `true` (#96)

authored by

Daniel and committed by
GitHub
bba1e6f4 0bb162d2

+6 -1
+5
.changeset/empty-planes-behave.md
··· 1 + --- 2 + '@0no-co/graphqlsp': patch 3 + --- 4 + 5 + Fix setting `shouldCheckForColocatedFragments` to `false` falling back to `true`
+1 -1
packages/graphqlsp/src/diagnostics.ts
··· 48 48 const tagTemplate = info.config.template || 'gql'; 49 49 const scalars = info.config.scalars || {}; 50 50 const shouldCheckForColocatedFragments = 51 - info.config.shouldCheckForColocatedFragments || true; 51 + info.config.shouldCheckForColocatedFragments ?? true; 52 52 53 53 let source = getSource(info, filename); 54 54 if (!source) return undefined;