Skip to content
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

v4 is not able to find usages of a fragments #656

Closed
rohandhruva opened this issue Apr 19, 2023 · 0 comments
Closed

v4 is not able to find usages of a fragments #656

rohandhruva opened this issue Apr 19, 2023 · 0 comments
Labels
Milestone

Comments

@rohandhruva
Copy link

rohandhruva commented Apr 19, 2023

Describe the bug

With v3.x, I could command-click on a fragment to see all the usages in queries. Right click -> Find Usages also worked the same way. With v4, that has stopped working. I only see "No usages found".

Command click to navigate to a fragment definition still works.

To Reproduce

  1. Write a query in a file, a.graphql
  2. In that query, use a fragment from a different file, b.graphql
  3. Navigate to the fragment's b.graphql file
  4. Right click on the fragment and click "Find Usages"

(EDIT: Actually, the issue also happens for fragments in the same file)

Expected behavior
I should see the usage in a.graphql file

Version and Environment Details
Operation system: macOS 13.3.1
IDE name and version: Android Studio Giraffe | 2022.3.1 Canary 11 and IntelliJ IDEA 2023.1 (Ultimate Edition)
Plugin version: 4.0.0-222

@rohandhruva rohandhruva changed the title v4 is not able to find usages of a fragment v4 is not able to find usages of a fragment across files Apr 19, 2023
@rohandhruva rohandhruva changed the title v4 is not able to find usages of a fragment across files v4 is not able to find usages of a fragments Apr 19, 2023
@vepanimas vepanimas added the bug label Apr 22, 2023
@vepanimas vepanimas added this to the 4.0.1 milestone Apr 23, 2023
vepanimas added a commit that referenced this issue Apr 24, 2023
vepanimas added a commit that referenced this issue Apr 24, 2023
(cherry picked from commit f6a561f)
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

2 participants