graphql / graphql/graphiql

LSP server cannot detect directives when they aren’t present in schema file or introspection

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

Description

## Steps to Reproduce the Problem Or Description
getting this unknown directive error message on @inline directive
Screen Shot 2022-02-09 at 12 10 15 PM

## Specifications

- GraphQL for VSCode Extension Version: v0.3.41
- VSCode Version: 1.64.1 (Universal)
- OS Name: Mac OS
- OS Version: Big Sur 11.6.2
- graphql config filename and format example:
```
module.exports = {
schema: 'schema.graphql',
documents: 'src/packages/app/src/**/*.{ts,tsx}',
extensions: {
endpoints: {
local: {
url: '<.....>',
},
dev: {
url: '<.....>',
},
},
},
};
```

## Logs Of TS Server || GraphQL Language Service

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.