You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there seems to be existing issues with wrong line jumps, but I'm not sure if this is the same condition so I am posting another issue.
When using inline string fragments in .ts files like below,
jump to definition(cmd+click) on RelatedLinks type jumps to wrong line(usually at the end of the file) at the correct file(where the type RealtedLinks is defined). The point here is that this happens only when the fragment name exactly matches the type name(both are RelatedLinks). If the names are different, go to definition works well, jumping to the correct line.
I tried moving the fragment to a .gql file, and here even with the same names, it jumps well to the correct line. I am not sure why this is different behavior to .ts file.
may this be a bug or am I setting something wrong?
EDIT:
found another bug.
Go to definition doesn't work well when clicking the fragment(CommonItemsFragment) which is defined in .ts file.
items {
...CommonItemsFragment
}
I have many fragments(embedded string fragment) defined in one .ts file. Upon clicking the fragment, go to definiton leads to the correct file, but just to the start of the file and not where the string fragment is defined.
thanks
Expected Behavior
jump to correct line, where the type is defined.
Steps To Reproduce
No response
Environment
GraphiQL Version: latest. I have tried the v0.10.0, with the vsix file.
OS: Sonoma 14.0
Browser: chrome
Bundler: webpack
react Version: 17
graphql Version:
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
Hello,
there seems to be existing issues with wrong line jumps, but I'm not sure if this is the same condition so I am posting another issue.
When using inline string fragments in
.ts
files like below,jump to definition(cmd+click) on
RelatedLinks
type jumps to wrong line(usually at the end of the file) at the correct file(where the typeRealtedLinks
is defined). The point here is that this happens only when the fragment name exactly matches the type name(both areRelatedLinks
). If the names are different, go to definition works well, jumping to the correct line.I tried moving the fragment to a
.gql
file, and here even with the same names, it jumps well to the correct line. I am not sure why this is different behavior to.ts
file.may this be a bug or am I setting something wrong?
EDIT:
found another bug.
Go to definition doesn't work well when clicking the fragment(
CommonItemsFragment
) which is defined in.ts
file.I have many fragments(embedded string fragment) defined in one
.ts
file. Upon clicking the fragment, go to definiton leads to the correct file, but just to the start of the file and not where the string fragment is defined.thanks
Expected Behavior
jump to correct line, where the type is defined.
Steps To Reproduce
No response
Environment
react
Version: 17graphql
Version:Anything else?
No response
The text was updated successfully, but these errors were encountered: