vscode-graphql
vscode-graphql copied to clipboard
Support auto-detecting .graphqlconfig without useLanguageServer
Ideally, we do not need the useLanguageServer flag, or at least enable it by default. This might require either running graphql-config locally to find configuration files, or making the language server more resilient to missing configuration.
This could be handled by the activationEvents in package.json.
E.g.:
{
...
"activationEvents": ["workspaceContains:**/.graphqlconfig"],
...
}
This will cause the extension to be eagerly loaded in projects that contain .graphqlconfig, but does get around the need to add a dependency on graphql-config.
What do you think?
I think this one can be closed now :)