-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LSP Server config doesn't work with customFetch #2018
Comments
does this issue appear to be resolved in the latest release? |
I just tested it again and yep it's still an issue |
The issue is with customFetch. Is that from graphql mesh config or something? We need to look up where these customFetch configs come from |
Ah okay, thought it was part of the standard. It's used by a few tools, namely graphql-codegen and graphql-cli (I assume via graphql mesh). A custom fetch is needed for Prismic (in my case) because you need to get a ref from its API to set in a header for the actual request. For now a perfectly acceptable workaround is generating a JSON schema through introspection and pointing GraphQL config to that instead. |
Sorry about that, sounds less than ideal :/ I don't see any reference to |
Actual Behavior
When using a remote schema (with a custom fetch in my case) autocomplete fails silently. When I generate a schema from introspection from that same schema definition with
graphql-cli
and use that, autocomplete works again.My config (for Prismic
Expected Behavior
This extension should work with remote schemas defined in graphql config
Steps to Reproduce the Problem Or Description
Specifications
The text was updated successfully, but these errors were encountered: