ChilliCream / graphql-platform

Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
https://chillicream.com
MIT License
5.23k stars 744 forks source link

When using aliases with incorrect field names, red squiggly is anchored on the alias, not the field name #6974

Open cmeeren opened 7 months ago

cmeeren commented 7 months ago

Product

Banana Cake Pop

Version

Latest from CDN

Link to minimal reproduction

See below

Steps to reproduce

Hopefully trivial: If you use aliases, but the field name is incorrect, then the highlighting is placed on the alias (with the same length as the incorrect field name). Below, the id field exists, but id2 does not.

image

Mouseover in case it clarifies anything:

image

What is expected?

The red squiggly appears below the incorrect field name (id2 above).

What is actually happening?

The red squiggly appears below the alias, with length corresponding to the incorrect field name (the first 3 characters of myAlias above).

Relevant log output

No response

Additional context

No response

rstaib commented 7 months ago

Thanks for reporting. I will take a look.

cmeeren commented 5 months ago

This is mistakenly labelled Area: F#. This is related to Banana Cake Pop.