Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/netail-highlight-subscription.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'vscode-graphql-syntax': patch
---

Add syntax highlighting support for subscription operations.
6 changes: 3 additions & 3 deletions packages/vscode-graphql-syntax/grammars/graphql.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"graphql-operation-def": {
"patterns": [
{ "include": "#graphql-query-mutation" },
{ "include": "#graphql-query-mutation-subscription" },
{ "include": "#graphql-name" },
{ "include": "#graphql-variable-definitions" },
{ "include": "#graphql-directive" },
Expand Down Expand Up @@ -55,8 +55,8 @@
{ "include": "#literal-quasi-embedded" }
]
},
"graphql-query-mutation": {
"match": "\\s*\\b(query|mutation)\\b",
"graphql-query-mutation-subscription": {
"match": "\\s*\\b(query|mutation|subscription)\\b",
"captures": {
"1": { "name": "keyword.operation.graphql" }
}
Expand Down
Loading