VS Code
The VS Code extension bundles the LSP server — no separate installation needed. It works immediately after installation.
Installation
Section titled “Installation”Install GraphQL Analyzer from the VS Code Marketplace, or search “GraphQL Analyzer” in the Extensions view (Ctrl/Cmd+Shift+X).
For VS Codium, Cursor, Windsurf, and other VS Code-compatible editors, install from the Open VSX Registry.
Manual: Download the .vsix for your platform from the releases page and install with code --install-extension <file>.vsix.
Configuration
Section titled “Configuration”Create a .graphqlrc.yml in your project root:
schema: "schema.graphql"documents: "src/**/*.{graphql,ts,tsx,vue,svelte,astro}"The extension activates automatically when a .graphqlrc.* or graphql.config.* file is detected in your workspace root.
Extension settings
Section titled “Extension settings”{ // Log LSP requests and responses to the output channel "graphql-analyzer.lsp.trace": true,
// Custom path to LSP server binary (optional) "graphql-analyzer.server.path": "/path/to/graphql-lsp",
// Environment variables for the LSP server "graphql-analyzer.server.env": { "RUST_LOG": "debug" },
// Server log verbosity: "error", "warn", "info", "debug" "graphql-analyzer.debug.logLevel": "warn"}Features
Section titled “Features”- Real-time validation — Errors appear as you type
- Go to definition —
F12on fragments, types, fields, variables, directives - Find references — Right-click → Find All References
- Hover — Type information and descriptions
- Embedded GraphQL — Full support in TypeScript/JavaScript, Vue, Svelte, and Astro files
Commands
Section titled “Commands”| Command | Description |
|---|---|
graphql-analyzer.restartServer | Restart LSP server |
graphql-analyzer.jumpToLogs | Show server logs |
graphql-analyzer.checkStatus | Check server status |
graphql-analyzer.reportIssue | Report an issue |
graphql-analyzer.testOtelConnection | Test OpenTelemetry Connection |
graphql-analyzer.startTrace | Start performance trace |
graphql-analyzer.stopTrace | Stop performance trace |
Access via Command Palette (Ctrl/Cmd+Shift+P).
Supported platforms
Section titled “Supported platforms”The extension includes a pre-compiled LSP server binary for:
- macOS (Intel and Apple Silicon)
- Linux (x86_64 and ARM64)
- Windows (x86_64)
Troubleshooting
Section titled “Troubleshooting”Extension not working?
- Open the Output panel (View → Output)
- Select “graphql-analyzer Debug” from the dropdown (or “graphql-analyzer LSP” for raw LSP traffic)
- Look for errors
Common fixes:
- Ensure
.graphqlrc.ymlexists in your workspace root - Verify schema file path is correct
- Check that document patterns match your files
- Reload the window (
Ctrl/Cmd+Shift+P→ “Developer: Reload Window”)
Enable debug logging:
{ "graphql-analyzer.debug.logLevel": "debug", "graphql-analyzer.server.env": { "RUST_LOG": "debug" }}See Troubleshooting for more.