graphql / graphql/graphiql

LSP Server config doesn't work with customFetch

Open
#2,018 5 comments 1 reaction 0 assignees View on GitHub
bug confirmed bug lsp-server
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

## 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](https://prismic.io)

```yaml
schema:
https://heybokeh.cdn.prismic.io/graphql:
customFetch: 'codegen-prismic-fetch'
documents: './src/**/*.{graphql,ts,tsx}'
...
```

## Expected Behavior

This extension should work with remote schemas defined in graphql config

## Steps to Reproduce the Problem Or Description

1. Specify remote schema with custom fetch in graphql config
2. Try write queries, see that autcomplete doesn't work

## Specifications

- GraphQL for VSCode Extension Version: v0.3.18
- VSCode Version: 1.60.2
- OS Name: macOS
- OS Version: 11.4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.