Fix unconfiguredPortsAttributes in devcontainer.json

This commit is contained in:
Alex Ross 2021-03-18 11:28:02 +01:00
parent abb6ff6d93
commit c359effab0
No known key found for this signature in database
GPG key ID: 89DDDBA66CBA7840
3 changed files with 21 additions and 9 deletions

View file

@ -75,7 +75,7 @@
],
"additionalProperties": false
},
"remote.unconfiguredPortsAttributes": {
"unconfiguredPortsAttributes": {
"type": "object",
"properties": {
"onAutoForward": {

View file

@ -184,7 +184,7 @@
],
"additionalProperties": false
},
"remote.unconfiguredPortsAttributes": {
"unconfiguredPortsAttributes": {
"type": "object",
"properties": {
"onAutoForward": {
@ -483,7 +483,7 @@
],
"additionalProperties": false
},
"remote.unconfiguredPortsAttributes": {
"unconfiguredPortsAttributes": {
"type": "object",
"properties": {
"onAutoForward": {
@ -758,7 +758,7 @@
],
"additionalProperties": false
},
"remote.unconfiguredPortsAttributes": {
"unconfiguredPortsAttributes": {
"type": "object",
"properties": {
"onAutoForward": {
@ -999,7 +999,7 @@
],
"additionalProperties": false
},
"remote.unconfiguredPortsAttributes": {
"unconfiguredPortsAttributes": {
"type": "object",
"properties": {
"onAutoForward": {
@ -1209,7 +1209,7 @@
],
"additionalProperties": false
},
"remote.unconfiguredPortsAttributes": {
"unconfiguredPortsAttributes": {
"type": "object",
"properties": {
"onAutoForward": {

View file

@ -89,12 +89,18 @@
],
"additionalProperties": false
},
"remote.unconfiguredPortsAttributes": {
"unconfiguredPortsAttributes": {
"type": "object",
"properties": {
"onAutoForward": {
"type": "string",
"enum": ["notify", "openBrowser", "openPreview", "silent", "ignore"],
"enum": [
"notify",
"openBrowser",
"openPreview",
"silent",
"ignore"
],
"enumDescriptions": [
"Shows a notification when a port is automatically forwarded.",
"Opens the browser when the port is automatically forwarded. Depending on your settings, this could open an embedded browser.",
@ -116,7 +122,13 @@
"default": "Application"
}
},
"defaultSnippets": [{ "body": { "onAutoForward": "ignore" } }],
"defaultSnippets": [
{
"body": {
"onAutoForward": "ignore"
}
}
],
"markdownDescription": "Set default properties that are applied to all ports that don't get properties from the setting `remote.portsAttributes`. For example:\n\n```\n{\n \"onAutoForward\": \"ignore\"\n}\n```",
"additionalProperties": false
},