From 055908fb12a255ec1015c046e21a14b05499aeba Mon Sep 17 00:00:00 2001 From: Terence Bezman Date: Wed, 6 Jul 2022 17:06:41 -0700 Subject: [PATCH] Fix comment blocks (#4001) Summary: Without this definition, VSCode doesn't recognize the embedded language inside of a JS file. It only does syntax highlighting, nothing more. Fixes https://github.com/facebook/relay/issues/3998#issuecomment-1175851851 Pull Request resolved: https://github.com/facebook/relay/pull/4001 Test Plan: Imported from GitHub, without a `Test Plan:` line. **Static Docs Preview: relay** |[Full Site](https://our.intern.facebook.com/intern/staticdocs/eph/D37660496/V5/relay/)| |**Modified Pages**| Reviewed By: josephsavona Differential Revision: D37660496 Pulled By: captbaritone fbshipit-source-id: 868a839b4ce56f68962b0f1f84c30121d4ba6a9a --- vscode-extension/package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vscode-extension/package.json b/vscode-extension/package.json index e478c5ffcdf6c..bcb6b1365a51e 100644 --- a/vscode-extension/package.json +++ b/vscode-extension/package.json @@ -1,7 +1,7 @@ { "name": "relay", "displayName": "Relay GraphQL", - "version": "1.0.2", + "version": "1.1.0", "description": "Relay-powered IDE experience", "repository": { "type": "git", @@ -52,7 +52,10 @@ "source.tsx" ], "scopeName": "inline.graphql", - "path": "./grammars/graphql.js.json" + "path": "./grammars/graphql.js.json", + "embeddedLanguages": { + "meta.embedded.block.graphql": "graphql" + } } ], "commands": [