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

Autocomplete in VSCode for generated code?

Open nickwesselman opened this issue 2 years ago • 2 comments

I am a brand new baby Rustacean so perhaps I'm missing something, but generated code does not seem to be recognized in VSCode for syntax highlighting, autocomplete, etc. Any ideas on how to get this working?

nickwesselman avatar Apr 21 '22 16:04 nickwesselman

Can you post an example? Are you using the rust-analyzer vs code extension?

arjunyel avatar Apr 29 '22 00:04 arjunyel

Here's an example of just that; I have no idea how to traverse the data structure further down.

Replace my hard-coded org and project_num gql variables with whatever project you'd like to test on (v1 - the old variant, not the new v2 ones that are now default). https://git.sr.ht/~x10an14/github-project-migrator/tree/80c560d7bb031677ed400dd20243c2a8edc677be/item/src/main.rs

x10an14 avatar Sep 15 '22 15:09 x10an14

Not sure what my issue was then but this totally works with rust-analyzer.

nickwesselman avatar Dec 01 '22 14:12 nickwesselman