Add requireLocalPort property to portsAttributes

Fixes microsoft/vscode-remote-release#4958
This commit is contained in:
Alex Ross
2021-05-14 16:01:40 +02:00
parent 6aec850c75
commit c8b4656197
5 changed files with 129 additions and 13 deletions

View File

@@ -54,6 +54,11 @@
"type": "string",
"description": "Label that will be shown in the UI for this port.",
"default": "Application"
},
"requireLocalPort": {
"type": "boolean",
"markdownDescription": "When true, a modal dialog will show if the chosen local port isn't used for forwarding.",
"default": false
}
},
"default": {
@@ -100,6 +105,11 @@
"type": "string",
"description": "Label that will be shown in the UI for this port.",
"default": "Application"
},
"requireLocalPort": {
"type": "boolean",
"markdownDescription": "When true, a modal dialog will show if the chosen local port isn't used for forwarding.",
"default": false
}
},
"defaultSnippets": [{ "body": { "onAutoForward": "ignore" } }],