Description
Is your feature request related to a problem? Please describe.
We open monorepo in VSCode where installed eslint with graphql-eslint plugin. And open some graphql
file in client
folder with query operation and decide to refactor server schema. We change code in the server
folder and after that, some watcher replaces schema.graphql
file with new type definitions. But eslint-server still checks graphql
operation in the client
folder with old schema (loaded on vscode start up).
Describe the solution you'd like
It will be nice if Eslint-server in VSCode automatically reloads graphql schema and does not use stale information for validation rules.
Describe alternatives you've considered
Run manually "Restart ESLint Server" command when schema.graphql file was changed.
Additional context
Especially it works funny when we use some graphql plugin for vscode and graphql-eslint simultaneously. After schema changes developer gets a validation error from vscode plugin for old field name
, and from graphql-eslint for the new value name123
. Most developers will be confused and think that both field names are incorrect.