vscode-graphql icon indicating copy to clipboard operation
vscode-graphql copied to clipboard

Support auto-detecting .graphqlconfig without useLanguageServer

Open stephen opened this issue 7 years ago • 3 comments

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.

stephen avatar Jan 04 '18 13:01 stephen

This could be handled by the activationEvents in package.json.

E.g.:

{
  ...
  "activationEvents": ["workspaceContains:**/.graphqlconfig"],
  ...
}

lostplan avatar Jan 24 '18 16:01 lostplan

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?

lostplan avatar Jan 24 '18 16:01 lostplan

I think this one can be closed now :)

divyenduz avatar May 09 '18 11:05 divyenduz