apollographql / apollographql/vscode-graphql

Feature: Schema editing support for localSchemaFile

Open
#253 1 comment 5 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
78
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Originally from: https://github.com/apollographql/vscode-graphql/issues/247

When working with localSchemaFile it would be nice to have minimal schema editing features.

Here's a few ideas that comes to mind
- "Go to Definition" when hovering on a field's type
- Basic validation like showing an error when the type of a field is unknown
- Autocomplete when typing a field's type

As mentioned in the original issue, maybe having a rover config would help, but I'd still love some support considering the extension has all the necessary schema information to provide an improved developer experience
https://www.apollographql.com/docs/graphos/schema-design/connectors/vs-code

For reference in https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql
I get type validation, type information on hover and go to definition

Screenshot 2024-12-17 at 9 40 56 AM

Screenshot 2024-12-17 at 9 41 55 AM

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by tracing how localSchemaFile is handled in the extension and compare the requested behavior with the linked GraphOS and marketplace references. Done requires an agreed scope and working schema navigation, validation, and completion behavior for local schema files.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.