Skip to content

Update .d.ts when schema.graphql is changed? #328

Answered by JoviDeCroock
lubosmato asked this question in Q&A
Discussion options

You must be logged in to vote

I just tested this and it doesn't require me to restart the LSP, the LSP watches the .graphql file correctly for me and regenerates everything. That being said, the programmatic API of our cli-utils should allow you to create this, the CLI at this time does not implement watch.

The code can be seen here, maybe there's a bug for the LSP but we'd need a reproduction/... https://github.com/0no-co/GraphQLSP/blob/main/packages/graphqlsp/src/graphql/getSchema.ts#L150-L163

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lubosmato
Comment options

@lubosmato
Comment options

Answer selected by lubosmato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants