All Projects → capaj → graphql-codegen-vscode

capaj / graphql-codegen-vscode

Licence: MIT License
vscode extension which runs graphql-codegen whenever you save a query/mutation

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to graphql-codegen-vscode

graphql-codegen-apollo-next-ssr
Autogenerate apollo code for nextjs ssr
Stars: ✭ 176 (+329.27%)
Mutual labels:  codegen, graphql-code-generator, graphql-codegen
graphql-java-codegen
Make your GraphQL Java application schema-driven.
Stars: ✭ 167 (+307.32%)
Mutual labels:  codegen, graphql-codegen
Render-CRLF
This Visual Studio Code extension shows end-of-line character (CR, LF, or CRLF) when whitespace rendering is turned on.
Stars: ✭ 16 (-60.98%)
Mutual labels:  vscode-extension
markdown-live
📝 Real-time Markdown Editor & Previewer for VS Code
Stars: ✭ 18 (-56.1%)
Mutual labels:  vscode-extension
vscode-javascript-booster
Sprinkle extra refactorings, code actions and commands over your JavaScript! 🍩 TypeScript and Flow are first class citizens as well!
Stars: ✭ 115 (+180.49%)
Mutual labels:  vscode-extension
micronaut-openapi-codegen
OpenAPI codegen for Micronaut
Stars: ✭ 26 (-36.59%)
Mutual labels:  codegen
hwt
VHDL/Verilog/SystemC code generator, simulator API written in python/c++
Stars: ✭ 145 (+253.66%)
Mutual labels:  codegen
vsc
☢️ A fresh-looking, neon theme for Visual Studio Code Almost radioactive.
Stars: ✭ 24 (-41.46%)
Mutual labels:  vscode-extension
vscode-explicit-folding
Customize your Folding for Visual Studio Code
Stars: ✭ 46 (+12.2%)
Mutual labels:  vscode-extension
vtprotobuf
A Protocol Buffers compiler that generates optimized marshaling & unmarshaling Go code for ProtoBuf APIv2
Stars: ✭ 418 (+919.51%)
Mutual labels:  codegen
multicopy
VS Code extension to copy and paste multiple snippets of code in your workspace.
Stars: ✭ 29 (-29.27%)
Mutual labels:  vscode-extension
vscode-interactive-graphviz
Interactive Graphviz Dot Preview for Visual Studio Code
Stars: ✭ 57 (+39.02%)
Mutual labels:  vscode-extension
vscode-wow-api
WoW extension for VSCode
Stars: ✭ 40 (-2.44%)
Mutual labels:  vscode-extension
clj-kondo.lsp
Clj-kondo language server and VSCode extension: https://marketplace.visualstudio.com/items?itemName=borkdude.clj-kondo
Stars: ✭ 17 (-58.54%)
Mutual labels:  vscode-extension
vscode-create-file-folder
A small vscode extension that help you to create files & folder in Atom Style.
Stars: ✭ 27 (-34.15%)
Mutual labels:  vscode-extension
vscode-gleam
📟 Gleam support for VS Code
Stars: ✭ 34 (-17.07%)
Mutual labels:  vscode-extension
vsc html5 boilerplate
This is a Visual Studio Code snippet extension for generating HTML 5 boilerplate code
Stars: ✭ 32 (-21.95%)
Mutual labels:  vscode-extension
vscode-checkpoints
Checkpoints for your code editing.
Stars: ✭ 27 (-34.15%)
Mutual labels:  vscode-extension
vscode-tlaplus
TLA+ language support for Visual Studio Code
Stars: ✭ 213 (+419.51%)
Mutual labels:  vscode-extension
vscode-fzf-quick-open
vscode extension providing quick file/folder open and searching using fzf
Stars: ✭ 42 (+2.44%)
Mutual labels:  vscode-extension

graphql-codegen-vscode

Runs @graphql-codegen generation as soon as you hit save on any gql or graphql file. Keep in mind it will only run when your node_modules contains @graphql-codegen/cli package.

Extension config

  • "graphql-codegen.fileExtensionsDeclaringGraphQLDocuments": change which file extensions are watched for saves. Defaults to graphql and gql. If you just use these files to define your mutations you don't need to configure anything.
  • "graphql-codegen.filePathToWatch": allow users to specify a multimatch patters that file paths should match before running codegen. This is important as users could specify a more broad file (eg ts) that could exist in both paths relevant to graphql generation and paths that are not. Defaults to null, so watches everything.

How is it different than VilvaAthibanPB.graphql-codegen

This extension uses codegen from your node_moodules inside the folder you are working on, so you will never get a mismatching output to what your CLI would give you. Also it is faster. VilvaAthibanPB's always executes all of the codegens. This extensions only executes codegens that match the last saved file.

OS support

Should support all major OSes.

Contributing

Testing is done manually until some basic specs are added.

CLI Version support

Extension is tested with @graphql-codegen/cli version 1.21.x. Other versions might not work as expected. If you hit any problems with other versions, please report them. The aim is to support as broad range of CLI versions as possible.

FAQ

Command output

Since this runs the codegen behind the scenes you cannot see the output. You get notified of success/error with a vscode information message like this:

image

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].