-
Notifications
You must be signed in to change notification settings - Fork 54
Description
Hi :)
Following up on the issue raised here. I got GraphiQL working with monaco-vscode-api
, but for some reason the variables panel is not being validated against the schema.
I was able to find out that monaco.languages.json.jsonDefaults.diagnosticsOptions
is updating correctly, and is correlated with the query, so the graphql worker is working as expected, but no markers are shown in the variables panel. I also tested dummy schemas that should fail everything to no avail.
The demo from this repo does seem to validate json files (at least the jsconfig.json
that comes with it), so I'm probably missing something in my config.
Here's a demo project where this happens. It relies on changes from this PR. Once they are released I'll update the packages.
You can try this query:
query MyQuery ($limit: Int) {
ability(limit: $limit) {
generaton_id
}
}
With this variables json:
{
"limdit": 1
}
The generaton_id
is a misspelling of generation_id
, and we can see the error:
But limidt
is also a misspelling of limit
, but no squiggly line: