graphql / graphql/graphiql

[vscode-graphql-syntax] The types of a union that has a directive are coloured like a directive

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

Description

![image](https://github.com/graphql/graphiql/assets/3090295/6ba291c4-a966-4ed6-8769-242e3f96c33a)

The types of `union1a` and `union2a` are coloured the same as the directive in the union. Instead, I would expect them to remain coloured as they are in `union1b` and `union2b`.

```gql
union union1a @deprecated = Int
union union1b = Int
union union2a @deprecated = Int | Float
union union2b = Int | Float
```

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.