feat(vscode): add GraphQL operations and fragments to the outline - #410
Merged
JoviDeCroock merged 1 commit intoAug 23, 2026
Merged
Conversation
|
JoviDeCroock
force-pushed
the
feat/document-symbols
branch
2 times, most recently
from
August 22, 2026 13:35
cad5654 to
dc013f3
Compare
JoviDeCroock
changed the base branch from
main
to
JoviDeCroock/vscode-graphqlsp-plugin
August 22, 2026 13:35
JoviDeCroock
force-pushed
the
JoviDeCroock/vscode-graphqlsp-plugin
branch
from
August 22, 2026 16:12
f694902 to
1f5f3f9
Compare
JoviDeCroock
force-pushed
the
feat/document-symbols
branch
from
August 22, 2026 16:12
dc013f3 to
7a74d42
Compare
JoviDeCroock
merged commit Aug 23, 2026
8b15398
into
JoviDeCroock/vscode-graphqlsp-plugin
2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What / Why
GraphQL documents embedded in JavaScript and TypeScript were invisible to VS Code's Outline view and in-file symbol picker. This PR adds GraphQL operations and fragments as document symbols, including named operations, anonymous operations, and fragment type conditions.
This PR is stacked on #416, which introduces the VS Code extension.
Implementation
DocumentSymbolProviderfor JavaScript, JSX, TypeScript, and TSX.graphql(...)/gql(...)calls and tagged templates.graphqlsp.templateeditor setting.getNavigationTreeapproach was removed because VS Code routesnavtreethrough its syntax server, where language-service plugins are not loaded.Test plan
Limitation
Custom template names configured only in
tsconfig.jsonare not visible to the extension host. Custom names set throughgraphqlsp.templateare supported.