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

Go to Definition doesn't work in GraphQL schema file #58

Open
DylanSpOddball opened this issue Feb 2, 2022 · 1 comment
Open

Go to Definition doesn't work in GraphQL schema file #58

DylanSpOddball opened this issue Feb 2, 2022 · 1 comment

Comments

@DylanSpOddball
Copy link

DylanSpOddball commented Feb 2, 2022

In our repo https://github.com/CMSgov/easi-app, we have a client project with a local schema file, with this apollo.config.js. When pkg/graph/schema.graphql is open, the Go to Definition action doesn't work on types defined in the schema; it shows "No definition found", even for types that are definitely defined in the schema file.

With the apollographql.trace.server setting on verbose, the following messages are displayed - it looks like the language server isn't returning any responses for textDocument/definition requests.

[Trace - 9:44:21 AM] Sending request 'textDocument/definition - (14)'.
Params: {
    "textDocument": {
        "uri": "file:///home/dylan/source/repos/easi-app/pkg/graph/schema.graphql"
    },
    "position": {
        "line": 1095,
        "character": 53
    }
}


[Trace - 9:44:21 AM] Received response 'textDocument/definition - (14)' in 1ms.
No result returned.

┆Issue is synchronized with this Jira Task by Unito

@DrewHoo
Copy link

DrewHoo commented Sep 21, 2022

Hitting this too, very annoying

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

No branches or pull requests

2 participants