[PR #9310] feat(lsp): Add GraphQL LSP server support #13067

Open
opened 2026-02-16 18:17:56 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9310

State: open
Merged: No


Summary

This PR adds GraphQL Language Server support to OpenCode, enabling IDE-like features (autocomplete, hover info, diagnostics, go-to-definition) for GraphQL projects.

Changes

  • Auto-detection via .graphqlrc.* or graphql.config.* files
  • Auto-installs when not found in system
  • Supports, standalone files and inline GraphQL in .graphql, .gql, .ts, .tsx, .js, .jsx, .vue, .svelte, .astro files

Testing

Tested locally with:

  • Opening and files in GraphQL projects
  • Opening inline GraphQL in TypeScript/JavaScript/Vue files
  • Verified LSP server spawns automatically when GraphQL config files are detected
  • Checked diagnostics for invalid GraphQL syntax
  • Tested autocomplete and hover information
  • Confirmed coexistence with Biome LSP (no conflicts)

Fixes #9308

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9310 **State:** open **Merged:** No --- ## Summary This PR adds GraphQL Language Server support to OpenCode, enabling IDE-like features (autocomplete, hover info, diagnostics, go-to-definition) for GraphQL projects. ## Changes - Auto-detection via `.graphqlrc.*` or `graphql.config.*` files - Auto-installs when not found in system - Supports, standalone files and inline GraphQL in .graphql, .gql, .ts, .tsx, .js, .jsx, .vue, .svelte, .astro files ## Testing Tested locally with: - Opening and files in GraphQL projects - Opening inline GraphQL in TypeScript/JavaScript/Vue files - Verified LSP server spawns automatically when GraphQL config files are detected - Checked diagnostics for invalid GraphQL syntax - Tested autocomplete and hover information - Confirmed coexistence with Biome LSP (no conflicts) Fixes #9308
yindo added the pull-request label 2026-02-16 18:17:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13067