Schema for attached container configurations (fixes microsoft/vscode-remote-release#1577)

This commit is contained in:
Christof Marti
2019-10-02 21:11:42 +02:00
parent e2f1ee3573
commit a1b7714d26
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
{
"$schema": "http://json-schema.org/schema#",
"description": "Configures an attached to container",
"allowComments": true,
"type": "object",
"definitions": {
"attachContainer": {
"type": "object",
"properties": {
"workspaceFolder": {
"type": "string",
"description": "The path of the workspace folder inside the container."
},
"forwardPorts": {
"type": "array",
"description": "Ports that are forwarded from the container to the local machine.",
"items": {
"type": "integer"
}
},
"extensions": {
"type": "array",
"description": "An array of extensions that should be installed into the container.",
"items": {
"type": "string"
}
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/attachContainer"
}
]
}