Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VSCode] Provide autocompletion for compiler configuration #4162

Closed
Closed
12 changes: 11 additions & 1 deletion vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,17 @@
"description": "Whether or not we should automatically start the Relay Compiler in watch mode when you open a project."
}
}
}
},
"jsonValidation": [
{
"fileMatch": "relay.config.json",
"url": "./src/json-schemas/relay-config-json.jsonc"
},
{
"fileMatch": "package.json",
"url": "./src/json-schemas/package-json.jsonc"
}
]
},
"prettier": {
"arrowParens": "avoid",
Expand Down
9 changes: 9 additions & 0 deletions vscode-extension/src/json-schemas/package-json.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"properties": {
"relay": {
"description": "Relay.js configuration",
"$ref": "./relay-config-json.jsonc"
}
}
}
Loading