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
[dagit] Add GraphQL configuration for VSCode #11565
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
It would be nice if this didn't have to live in the root. Let me see if I can make that work... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh this is very slick 🙌 Good find.
I think it's definitely a bummer having another config file but if it's gotta be there, I think it's worth it for this!
Yeah, I can't figure out how to make it work. I think it has to live at the workspace root (
|
38d0fe8
to
c05ce60
Compare
### Summary & Motivation Picking this back up from dagster-io#11500. Add a `.graphqlrc.yml` to the `dagster` root to allow the VSCode GraphQL language extension (https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql) to find the `dagit` schema for autocompletion and validation. ### How I Tested These Changes Open `VersionNumber.tsx`, mess around with its query. <img width="568" alt="Screenshot 2023-01-06 at 4 17 04 PM" src="https://user-images.githubusercontent.com/2823852/211109434-50045504-3743-45cc-b917-898e9e95ea33.png"> <img width="336" alt="Screenshot 2023-01-06 at 4 17 16 PM" src="https://user-images.githubusercontent.com/2823852/211109438-fb196f66-b5bc-4739-89c1-029d6df8d26f.png"> <img width="614" alt="Screenshot 2023-01-06 at 4 18 17 PM" src="https://user-images.githubusercontent.com/2823852/211109440-ed90b399-d202-4abd-9e93-4a6bd73baefd.png">
Summary & Motivation
Picking this back up from #11500.
Add a
.graphqlrc.yml
to thedagster
root to allow the VSCode GraphQL language extension (https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql) to find thedagit
schema for autocompletion and validation.How I Tested These Changes
Open
VersionNumber.tsx
, mess around with its query.