Skip to content

Commit d5cc7f1

Browse files
octreftrevor-scheer
authored andcommitted
Add support for inline graphql highlighting in Vue <script> tags (#981)
Add `.vue` file types to the vscode extension in order to pick up Vue files for syntax highlighting, etc.
1 parent 3aff167 commit d5cc7f1

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
- Support validation parameters for service:check [#953](https://github.com/apollographql/apollo-tooling/pull/953)
77
- `apollo-language-server`
88
- Better error handling in ApolloEngineClient [#953](https://github.com/apollographql/apollo-tooling/pull/953)
9+
- `vscode-apollo`
10+
- Fix inline graphql highlighting in Vue `<script>` tags [#981](https://github.com/apollographql/apollo-tooling/pull/981)
911

1012
## `apollo@2.4.4`, `apollo-codegen-scala@0.33.0`
1113

packages/vscode-apollo/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
"source.js",
8484
"source.ts",
8585
"source.js.jsx",
86-
"source.tsx"
86+
"source.tsx",
87+
"source.vue"
8788
],
8889
"scopeName": "inline.graphql",
8990
"path": "./syntaxes/graphql.js.json",

packages/vscode-apollo/syntaxes/graphql.js.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"fileTypes": ["js", "jsx", "ts", "tsx"],
2+
"fileTypes": ["js", "jsx", "ts", "tsx", "vue"],
33
"injectionSelector": "L:source -string -comment",
44
"patterns": [
55
{

0 commit comments

Comments
 (0)