Skip to content

feat(lsp): Add GraphQL LSP server support#9310

Open
sandiiarov wants to merge 1 commit intoanomalyco:devfrom
sandiiarov:dev
Open

feat(lsp): Add GraphQL LSP server support#9310
sandiiarov wants to merge 1 commit intoanomalyco:devfrom
sandiiarov:dev

Conversation

@sandiiarov
Copy link

@sandiiarov sandiiarov commented Jan 18, 2026

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

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add GraphQL LSP server support

1 participant