Skip to content

🍇 A GraphQL extension for vscode with support for autocomplete, go to def, and more

License

Notifications You must be signed in to change notification settings

stephen/vscode-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3ca6087 · Oct 1, 2020

History

66 Commits
Dec 23, 2017
Dec 24, 2017
Oct 1, 2020
Apr 26, 2018
Jul 9, 2017
Oct 1, 2020
Apr 26, 2018
Mar 6, 2018
Apr 26, 2018
Apr 26, 2018
Oct 1, 2020
Dec 24, 2017
Jul 8, 2017
Oct 1, 2020

Repository files navigation

vscode-graphql

Syntax highlighting, diagnostics, autocomplete, and go to definition for .graphql / .gql files.

Features

  • Syntax highlighting
  • Autocomplete
  • Go to definition
  • Error diagnostics

Autocomplete, go to definition, and diagnostics are language server features supported by the graphql-language-service.

Installation

Install stpn.vscode-graphql from the marketplace or from the command line with:

code --install-extension stpn.vscode-graphql

Configuration

Language server features will be enabled when a .graphqlconfig file is found in the project.

Using the language server will require a schema to be specified via a .graphqlconfig file.

Example:

{
  "schemaPath": "./schema.json"
}

See here for other ways to provide a GraphQL schema.

Developing

Debugging graphql-language-service

The language service is run, and debugged, as a standalone Node.js process. See Node.js debugging guide for general information.

The simplest way to debug is to open chrome://inspect in Chrome and browse for the process. Alternatively in the test target VSCode (i.e. where the extension is running) toggle View → Output and follow the printed instructions.

About

🍇 A GraphQL extension for vscode with support for autocomplete, go to def, and more

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published