graphql / graphql/graphiql

Inline Operation Execution VS Code plugin doesn't respect `graphql-config.load.rootDir`

Open
#3,862 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

In my workspace, the `graphql.config.ts` file is located in a subdirectory. That subdirectory is specified in the `graphql-config.load.rootDir` setting, which is respected by the LSP (autocomplete works), but not in the Operations plugin; I always get the error `Error: schema from graphql config`.

When I open that subdirectory as the workspace root, it works correctly.

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.