graphql / vscode-graphql

MIGRATED: VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
https://marketplace.visualstudio.com/items?itemName=Prisma.vscode-graphql
MIT License
557 stars 71 forks source link

IntelliSense/hover, Go to Definition, Peek Definition all broken #87

Closed peterschussheim closed 4 years ago

peterschussheim commented 5 years ago

Actual Behavior

It appears that syntax highlighting works properly. Otherwise, the features mentioned in title do not work.

Specifications

deftomat commented 5 years ago

Maybe similar to https://github.com/prisma/vscode-graphql/issues/84

alexlafroscia commented 5 years ago

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.

abenhamdine commented 5 years ago

Same issue than the OP but on Ubuntu 18

ScripterSugar commented 5 years ago

Same problem here. every functionalities except the syntax highlighting aren't working at all.

alexlafroscia commented 5 years ago

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.

divyenduz commented 5 years ago

@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.

steida commented 5 years ago

@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

kotojo commented 5 years ago

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.

switz commented 5 years ago

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.

greg-murray-volusion commented 4 years ago

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.

acao commented 4 years ago

@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.

MariaSolOs commented 3 years ago

Having the same issue as well. I don't know what else to do to make the autocompletion kick in :(