Skip to content

Commit

Permalink
fix(graphqlsp): Fix wrong fileType diagnostic error when introspectio…
Browse files Browse the repository at this point in the history
…n is disabled
  • Loading branch information
LeosLeoPb committed Aug 4, 2024
1 parent b426515 commit 2bbf038
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/graphqlsp/src/graphql/getSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,14 @@ export const loadSchema = (
}

if (ref.current) {
saveTadaIntrospection(
ref.current.introspection,
tadaOutputLocation,
tadaDisablePreprocessing,
logger
);
if (ref.current.tadaOutputLocation !== undefined) {
saveTadaIntrospection(
ref.current.introspection,
tadaOutputLocation,
tadaDisablePreprocessing,
logger
);
}
} else if (ref.multi) {
Object.values(ref.multi).forEach(value => {
if (!value) return;
Expand Down

0 comments on commit 2bbf038

Please sign in to comment.