graphql / vscode-graphql

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

Nothing works except highlighting #339

Closed turkerdev closed 2 years ago

turkerdev commented 3 years ago

Actual Behavior

Nothing works except syntax highlighting.

Expected Behavior

autocomplete suggestions validation against schema hover support go to definition support (input, enum, type)

acao commented 3 years ago

Sample config file?

turkerdev commented 2 years ago
# .graphqlrc.yml
schema: "src/graphql/schema.gql"
acao commented 2 years ago

ugh, there is still some kind of nasty bug. I think someone tried to fix schema paths with node.js file URIs and it possibly made things in the language server worse.

this is annoying, but can you try schemaPath instead of schema? and then restarting the language server?

adnan-sheikh commented 2 years ago

It was working fine for me until yesterday. Today, I can only see syntax highlighting and nothing else. Here's my graphql.config.json file:

{
  "schema": "./graphql.schema.json",
  "documents": "./src/components/**/*.graphql"
}
epegzz commented 2 years ago

Same here. Stopped working for me. Probably today, not 100% sure.

# .graphqlrc.yml
schema: ./graphql-schema.graphql
adnan-sheikh commented 2 years ago

then restarting the language server?

how can I do this ? I really need this to work. Changing to schemaPath is not working

acao commented 2 years ago

It must be the new language server version broke SDL support 👎🏻

You may just need to install an earlier version of the extension. I will see if I can unpublish

adnan-sheikh commented 2 years ago

v0.3.18 seems to work perfectly fine. I switched

tonyfromundefined commented 2 years ago

v0.3.18 seems to work perfectly fine. I switched

I have same issue and issue was fixed when I downgraded to version 0.3.18. There is an extension orsenkucher.vscode-graphql that is forked with version 0.3.18. So, I'm using it now.

acao commented 2 years ago

I fixed all the issues and released a new version 0.3.22, which will work even better than my 0.3.18 release!