facebook / relay

Relay is a JavaScript framework for building data-driven React applications.
https://relay.dev
MIT License
18.24k stars 1.8k forks source link

Add SchemaDocument go to definition LSP support #4669

Closed tobias-tengler closed 3 days ago

tobias-tengler commented 2 months ago

Adds go to definition support for types and directives within a .graphql file.

tobias-tengler commented 1 month ago

@captbaritone Thanks for merging the SchemaDocument support :) This is now also ready to be merged.

EDIT: Remember that you need to run the VS Code extension from source when testing. Otherwise the LSP will not be activated for .graphql files. Or alternatively, release a new version of the extension. I've already implemented support and bumped the version in https://github.com/facebook/relay/commit/964e078395a8b5ef2d86eea33d524cda375e3572.

facebook-github-bot commented 3 days ago

@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 3 days ago

@captbaritone merged this pull request in facebook/relay@68c7ccafb3efd952fefe2aaada72af4f518b773f.