Giter VIP home page Giter VIP logo

Comments (10)

AndrewIngram avatar AndrewIngram commented on April 27, 2024 1

Here's the simplest repro I can make (I grabbed the schema from the graphql-js project codebase) https://github.com/AndrewIngram/vscode-graphql-repro

I'm not seeing any jump-to-definition behaviour on anything.

from vscode-graphql.

divyenduz avatar divyenduz commented on April 27, 2024

@AndrewIngram : Thanks for raising the issue. Can you please provide a minimal reproduction (or the single graphql file) as a github gist/repo? Will expedite things at my end.

I will look into it tomorrow evening or over the weekend. Thanks.

from vscode-graphql.

divyenduz avatar divyenduz commented on April 27, 2024

@AndrewIngram : Also, Generally, one file schema jump should work without the includes. But what are you trying to jump on? We currently support it for Enum, types and input types only. Not scalars etc.

from vscode-graphql.

divyenduz avatar divyenduz commented on April 27, 2024

Thanks! I will look into it asap and revert. I have to test it with .graphqlconfig - JSON but in the meantime, would it be possible to use the yml format and rename config to .graphqlconfig.yml.

That might work. Thanks.

from vscode-graphql.

AndrewIngram avatar AndrewIngram commented on April 27, 2024

Type:

image

Enum:

image

from vscode-graphql.

AndrewIngram avatar AndrewIngram commented on April 27, 2024

I've changed the repro to use yaml, but it hasn't made any difference

from vscode-graphql.

divyenduz avatar divyenduz commented on April 27, 2024

@AndrewIngram : Thanks, I will look into this soon and revert :)

from vscode-graphql.

divyenduz avatar divyenduz commented on April 27, 2024

@AndrewIngram : Ah! the problem is that due to #18, extension thinks that schema is not valid and is unable to parse it.

Because interface and & is just a valid SDL after the latest spec release (June-2018) and we do not support that yet.

Need to make the graphql-language-service support graphql-js version 0.14.

I will try to pick this up soon.

from vscode-graphql.

divyenduz avatar divyenduz commented on April 27, 2024

Created an issue https://github.com/graphql/graphql-language-service/issues/244 to track the progress of this.

from vscode-graphql.

acao avatar acao commented on April 27, 2024

@AndrewIngram check out 0.3.1! I still need to expose the option to use .graphql files as source for 0.3.2 (by default generates from projectConfig.getSchema() result), but at least you'll have jump to definition!

from vscode-graphql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.