graphql / vscode-graphql

MIGRATED: VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
https://marketplace.visualstudio.com/items?itemName=Prisma.vscode-graphql
MIT License
555 stars 71 forks source link

Use the theme API to set the right colours for the status bar item #422

Closed orta closed 2 years ago

orta commented 2 years ago

Avoids: Screen Shot 2022-02-08 at 12 22 07 PM

Only sets the color when it is an error, and it uses the theme API to grab a warning colour. Unsure if this will be perfect, but bright red wasn't going to work in all cases either 👍🏻

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: 518420dbe90f6575be1adbdbf741c59042e2fe30

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------- | ----- | | vscode-graphql | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

orta commented 2 years ago

It also runs prettier on the file because the vscode settings are set to format on save

acao commented 2 years ago

Awesome! Next up, we should make this status bar report config status.