Skip to content

feature: add fragment arguments syntax highlights#3019

Merged
acao merged 2 commits intographql:mainfrom
mjmahone:fragment-args-2023
Feb 19, 2023
Merged

feature: add fragment arguments syntax highlights#3019
acao merged 2 commits intographql:mainfrom
mjmahone:fragment-args-2023

Conversation

@mjmahone
Copy link
Copy Markdown
Contributor

@mjmahone mjmahone commented Feb 9, 2023

Adding fragment argument syntax highlighting to VSCode. This is needed as per discussion in graphql/graphql-wg#1239 (comment)

Before:
vscode-graphql-missing-fragment-args

After:
vscode-graphql-with-fragment-args

To test this:

Probably the fast-devex way to make changes here is to have some ln -s symlink from ~/.vscode/extensions/ to graphiql/packages/vscode-graphql-syntax, but this change was simple enough that I didn't need that quick an iteration cycle.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 9, 2023

🦋 Changeset detected

Latest commit: be97679

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-syntax Minor

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

@mjmahone mjmahone requested review from Keweiqu and orta February 9, 2023 06:28
@orta
Copy link
Copy Markdown
Member

orta commented Feb 9, 2023

👍🏻 looks right overall to me, didn't run it locally but the regexes seem right

@acao
Copy link
Copy Markdown
Member

acao commented Feb 9, 2023

looks great, thank you @mjmahone !

we hope to be able to publish again by next week... though I guess there is a way I can publish just the vscode syntax extension locally...

@mjmahone
Copy link
Copy Markdown
Contributor Author

mjmahone commented Feb 9, 2023

we hope to be able to publish again by next week... though I guess there is a way I can publish just the vscode syntax extension locally...

Next week would certainly be soon enough: I think right now I'm just making sure all the work items for fragment args are making progress and figuring out what, if any, of the blockers are. Syntax highlighting was the biggest blocker to trying it in Relay, but there are still a few other (namely, graphql-js syntax additions and Relay parsing support) that have not yet been merged. Thanks @acao !

@acao
Copy link
Copy Markdown
Member

acao commented Feb 19, 2023

going to go ahead and merge for now, thanks again!

just noting for the future - this feels like a regression that may have been introduced with another fix in the recent past. we don't have a great way to test this yet, though there is now a way to test the static highlighting it would seem

@acao acao merged commit ae43add into graphql:main Feb 19, 2023
@acao acao mentioned this pull request Feb 19, 2023
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.

3 participants