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

[dagit] Add GraphQL configuration for VSCode #11565

Merged
merged 1 commit into from Jan 9, 2023
Merged

Conversation

hellendag
Copy link
Member

@hellendag hellendag commented Jan 6, 2023

Summary & Motivation

Picking this back up from #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.

Screenshot 2023-01-06 at 4 17 04 PM

Screenshot 2023-01-06 at 4 17 16 PM

Screenshot 2023-01-06 at 4 18 17 PM

@vercel
Copy link

vercel bot commented Jan 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated
dagit-storybook ⬜️ Ignored (Inspect) Jan 6, 2023 at 10:42PM (UTC)
dagster ⬜️ Ignored (Inspect) Jan 6, 2023 at 10:42PM (UTC)

@hellendag
Copy link
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@hellendag
Copy link
Member Author

It would be nice if this didn't have to live in the root. Let me see if I can make that work...

Copy link
Collaborator

@bengotow bengotow left a 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!

@hellendag
Copy link
Member Author

It would be nice if this didn't have to live in the root. Let me see if I can make that work...

Yeah, I can't figure out how to make it work. I think it has to live at the workspace root (dagster).

graphql-language-service-usage-logs: WARNING: graphql-config error, only highlighting is enabled:
GraphQL Config file is not available in the provided config directory: [redacted]
Please check the config directory.

Base automatically changed from dish/no-schema-docblocks to master January 6, 2023 22:40
@hellendag hellendag merged commit 27ddfe4 into master Jan 9, 2023
@hellendag hellendag deleted the dish/vscode-config branch January 9, 2023 15:25
AlexanderVR pushed a commit to AlexanderVR/dagster that referenced this pull request Jan 10, 2023
### 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">
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

Successfully merging this pull request may close these issues.

None yet

2 participants