-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable goto def in LSP to goto the actual schema definition (#4434)
Summary: I basically just took captbaritone 's POC and made it configurable based on our conversation [on Threads](https://www.threads.net/janjonzen/post/CwwfXJ7LlL_) This should be reasonably generalized to support different use-cases, but I'm open to rewriting all of this. Pull Request resolved: #4434 Test Plan: ``` cd compiler cargo build --release --bin relay cd ../vscode-extension yarn build-local ``` In a private project, I configured the new option and overrode the relay binary location: ```diff + "relay.pathToExtraDataProviderScript": "../scripts/graphql_lookup.sh", + "relay.pathToRelay": ".../relay/compiler/target/release/relay" ``` I manually installed the `relay-2.1.0.vsix` file in my VSCode and reloaded I opened a file with a Relay GraphQL query in it and ctrl-clicked (goto def on my machine) and it went to the correct file! Reviewed By: captbaritone Differential Revision: D48955713 Pulled By: bigfootjon fbshipit-source-id: 20f2a707e471c4a8a860711e5625887cf6e4ed70 Co-authored-by: Jordan Eldredge <jordan@jordaneldredge.com>
- Loading branch information
1 parent
5d22d1c
commit 3b96b01
Showing
5 changed files
with
92 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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