Open DPangerl opened 2 years ago
Same problem here with Linux works fine in Mac.
@DPangerl have you tried removing documents: "src/**/*.{graphql,js,ts,jsx,tsx}",
line?
Hi. I got same error in Linux (Ubuntu 22.04, Node v18.12.1) and after removing documents
entry works well.
I've noticed that there is indeed autocompletion, but not like I would have expected it.
Asuming I have a type called User
and i want it to add as filed type, the autocomplete shows just the default entries.
As soon as I have typed the first character U
, the suggestions will show up (also e.g UserSession
etc.).
However, no comments or other info is displayed, so I even can't tell if its the autocomplete or another vs code tool.
Compare to the capabilities of the webstorm plugin this is not really much – but at least it gives you a hint
By the way, i reduced my setup to a single project and one single schema.graphql file… no stitching, no gql
-tag
{
"name": "Backend Graphql Schema",
"schema": "src/graphql/schema.graphql"
}
I'm having a similar issue -- no autocomplete in Ubuntu 22 LTS but I don't get any output log errors. See line 9
- there should be quite a few options and I confirmed this set up works for MacOS.
Removing the documents
entry does not solve problem for me.
config
export default {
schema: "src/schema.generated.ts",
documents: "src/**/*.graphql",
};
Hi everyone,
i have a hard time figuring out how to config this extension so autocomplete works for my graphql types and fields. Of course i went through the readme but neither config did the trick.
My confilg looks like this:
I have a
src
-folder and the config file is in the root level.Most of the time the server crashes with:
When i start the graphql server, the following errors are thrown too:
If i remove the
documents
-property the server starts. But autocomplete does not work at all.If i hit ctrl-space, this is what I get:
If i type a
S
it looks like thisAnd my own types are also not recognized at all:
I struggle with this extension since at least a year… I even switched to PHPStorm once (their extension works perfectly but the IDE is missing features)
I guess it shouId not be this hard to get this working. I really would appreciate it if someone could help me with this.
Thanks in advance and best regards
Daniel