Add proper contribution schema for ts server pluguins

#50682
This commit is contained in:
Matt Bierner 2018-05-31 17:20:34 -07:00
parent 549c1a1ba0
commit 857db02b2c
2 changed files with 32 additions and 0 deletions

View file

@ -44,6 +44,12 @@
],
"main": "./out/extension",
"contributes": {
"jsonValidation": [
{
"fileMatch": "package.json",
"url": "./schemas/package.schema.json"
}
],
"configuration": {
"type": "object",
"title": "%configuration.typescript%",

View file

@ -0,0 +1,26 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "TypeScript contributions to package.json",
"type": "object",
"properties": {
"contributes": {
"type": "object",
"properties": {
"typescriptServerPlugins": {
"type": "array",
"description": "Contributed TypeScript server plugins.",
"items": {
"type": "object",
"description": "TypeScript server plugin.typescriptServerPlugins",
"properties": {
"name": {
"type": "string",
"description": "The name of the plugin as listed in the package.json."
}
}
}
}
}
}
}
}