Skip to content

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

Closed
andheiberg opened this issue Jan 30, 2017 · 5 comments
Closed

Add "Navigate to Declaration" across files #56

andheiberg opened this issue Jan 30, 2017 · 5 comments
Labels

Comments

@andheiberg
Copy link

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

@andheiberg
Copy link
Author

Hmm can't seem to find it :(

@jimkyndemeyer
Copy link
Collaborator

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,
Jim.

@ph55
Copy link

ph55 commented May 16, 2018

Same here.
Using apollographql and it's schemas that often combined from different files.
https://www.apollographql.com/docs/graphql-tools/schema-stitching.html

@jimkyndemeyer
Copy link
Collaborator

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.

@jimkyndemeyer
Copy link
Collaborator

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,
Jim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants