Skip to content

Commit

Permalink
Add support for inline graphql highlighting in Vue <script> tags (#981)
Browse files Browse the repository at this point in the history
Add `.vue` file types to the vscode extension in order to pick up Vue files for syntax highlighting, etc.
  • Loading branch information
octref authored and trevor-scheer committed Feb 7, 2019
1 parent 3aff167 commit d5cc7f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- Support validation parameters for service:check [#953](https://github.com/apollographql/apollo-tooling/pull/953)
- `apollo-language-server`
- Better error handling in ApolloEngineClient [#953](https://github.com/apollographql/apollo-tooling/pull/953)
- `vscode-apollo`
- Fix inline graphql highlighting in Vue `<script>` tags [#981](https://github.com/apollographql/apollo-tooling/pull/981)

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

Expand Down
3 changes: 2 additions & 1 deletion packages/vscode-apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
"source.js",
"source.ts",
"source.js.jsx",
"source.tsx"
"source.tsx",
"source.vue"
],
"scopeName": "inline.graphql",
"path": "./syntaxes/graphql.js.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-apollo/syntaxes/graphql.js.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"fileTypes": ["js", "jsx", "ts", "tsx"],
"fileTypes": ["js", "jsx", "ts", "tsx", "vue"],
"injectionSelector": "L:source -string -comment",
"patterns": [
{
Expand Down

0 comments on commit d5cc7f1

Please sign in to comment.