graphiql
graphiql copied to clipboard
[vscode-graphql] Markdown code highlighting breaks for fenced code blocks when gql is typed
In a markdown file whenever I have a fenced code block, with for example Javascript code, whenever I type gql somewhere the code highlighting in that block breaks.

It's some side effect of this
https://github.com/graphql/graphiql/blob/5278625d27ca91ac12b1c5c8fc9468fc238f5dcd/packages/vscode-graphql/grammars/graphql.markdown.codeblock.json#L8
CC'ing @orta who wrote this lovely grammar
@acao it looks awfully similar to this to my eye
I believe I have a fix (just copied the way fenced code blocks are captured in the markdown tml). Working on a testing setup to go along with this change.
Curious if you would expect to see highlighting in this case:
<!-- markdown file -->
```js
const query = gql`
query { test } # <- would you expect gql syntax highlighting here?
`;
js```