-
Notifications
You must be signed in to change notification settings - Fork 95
Add "Navigate to Declaration" across files #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm can't seem to find it :( |
Hi Andreas. Thanks for using a plugin. Modules and scopes in IntelliJ are one of the more advanced features, and underpins other features such as find usages and go to declaration. Right now, the GraphQL ecosystem is growing at an explosive rate, and with that follows a million different ways of structuring a project. So while your suggestions makes sense for your use case, it might be considered a bug for other projects. For example, Apollo very recently introduced imports in comments. I'd like to see more of a consensus form, maybe even as part of the spec, before applying the efforts that this kind of tooling requires. But I'll keep this issue open an enhancement. Best regards, |
Same here. |
The 2.0 alpha makes it possible to have multiple schemas in a single project using IntelliJ/WebStorm "Scopes". You can configure them for the project in the IDE Settings dialog. The scopes also apply to resolving fragments. By default the entire project is searched. See 2.0.0-alpha-2 if you'd like to try it and help test it. |
The 2.0 release supports this by discovering your schema files on the fly. See https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/docs/developer-guide Best regards, |
First off thanks for putting this plugin together. It's absolutely amazing and have most likely saved me hours of work already.
I do have one feature request though. It's amazing that you support "Navigate to Declaration" (CMD+Click) in GQL. However we have our schema split up into multiple files to make it easier to navigate. It would be amazing if the plugin could search across all .graphqls files in the project and not just the current file.
Don't have any experience with Intellij Plugins but might have a look around the code base to see if it's an easy fix. But would love to hear from you either way.
Thanks again,
Andreas
The text was updated successfully, but these errors were encountered: