Closed peterschussheim closed 4 years ago
Maybe similar to https://github.com/prisma/vscode-graphql/issues/84
I'm having the same issue, I think.
I have a .graphqlconfig
file in the root of my project, but auto-complete in my .graphql
files is just based on words in the current file, not based on the actual GraphQL schema.
Looking at the output from the GraphQL Language Server in the Output tab, there's just nothing at all reported.
Same issue than the OP but on Ubuntu 18
Same problem here. every functionalities except the syntax highlighting aren't working at all.
I was finally able to get this to work... I'm not sure exactly what changed, but I added the includes
field to my .graphqlconfig
file to specify which files should use which schema (I have multiple projects in this repo). While I used to not get any of the feedback I was expecting, things seem to be working now.
@alexlafroscia As the documentation suggests, adding files to includes is the intended way to use this extension.
For others, please share a minimal project that I can use to reproduce this issues? Once the .graphqlconfig
is provided, the language features of the extension should kick in.
@divyenduz I tried it again and no matter what I set it only do highlight. You can check it here: https://github.com/este/este
Also having this issue. I've tried two setups to my config file with no avail.
projects:
api:
schemaPath: ./packages/graphql/src/schema/schema.graphql
includes: ["**/*.graphql"]
venue:
schemaPath: ./packages/graphql/src/schema/schema.graphql
includes: ["**/*.graphql"]
extensions:
endpoints:
default: http://development.gatherhere.com:5000/graphql
and just no projects like this
schemaPath: ./packages/graphql/src/schema/schema.graphql
includes: ["**/*.graphql"]
extensions:
endpoints:
default: http://development.gatherhere.com:5000/graphql
Either way I get typeahead for my queries, but writing any new types server side results in nothing but syntax highlighting. No matter what I cannot get go to definition to do anything though. Also I have no errors or output of any sort from GraphQL Language Server.
I'm not getting any intellisense in any queries (inline gql or .graphql
files):
projects:
admin:
schemaPath: ./packages/admin/schema.graphql
includes: ["./packages/admin/**/*.{ts,tsx,graphql}"]
extensions:
endpoints:
dev:
url: "http://XXXXXXX.com/v1/graphql"
headers:
x-hasura-admin-secret: XXXXXXXX
But executing the queries works great.
Intellisense and hover works for me in .gql
files only. They do not work in .js
or .ts
files for gql tags, which is what would be the most valuable for me.
@greg-murray-volusion this feature has been added since! 0.3.1
should work great with these use cases, be sure to udpate to @0.3.1 for all the latest improvements.
Having the same issue as well. I don't know what else to do to make the autocompletion kick in :(
Actual Behavior
It appears that syntax highlighting works properly. Otherwise, the features mentioned in title do not work.
Specifications