auto-
This commit is contained in:
Родитель
77dbc8804f
Коммит
3ffceb805e
|
@ -49,15 +49,15 @@ Previously, after a short duration of failing to communicate with the remote, a
|
|||
|
||||
### Port attributes
|
||||
|
||||
Attributes can now be configured for ports in settings. These attributes let you control the label that shows in the Ports view, the action that occurs when the port is auto-forwarded, and whether that that port should always prompt for elevation if the local port is privileged (currently no Remote extensions support this last one).
|
||||
Attributes can now be configured for ports in settings. These attributes let you control the label that shows in the Ports view, the action that occurs when the port is autoforwarded, and whether that that port should always prompt for elevation if the local port is privileged (currently no Remote extensions support this last one).
|
||||
|
||||
* The port number can be a number or a range (ex. `3000` or `30000-40000`).
|
||||
* `label`: A label for the port in the "Ports" view.
|
||||
* `onAutoForward`: Specifies the action do be taken when the port is auto-forwarded. See the setting `"remote.autoForwardPorts"` for more information about auto-forwarding. Can be one of the following:
|
||||
* `onAutoForward`: Specifies the action do be taken when the port is autoforwarded. See the setting `"remote.autoForwardPorts"` for more information about autoforwarding. Can be one of the following:
|
||||
* `notify`: Shows a notification, default
|
||||
* `silent`: The port will be auto-forwarded, but no notification will be shown
|
||||
* `openBrowser`: Immediately opens the browser when the port is auto-forwarded
|
||||
* `ignore`: The port will not be auto-forwarded
|
||||
* `silent`: The port will be autoforwarded, but no notification will be shown
|
||||
* `openBrowser`: Immediately opens the browser when the port is autoforwarded
|
||||
* `ignore`: The port will not be autoforwarded
|
||||
* `elevateIfNeeded`: If the remote extension you are using supports elevating for privileged ports (for example, ports below 1024 on Linux or macOS), then setting this to `true` will cause the elevation prompt to immediately show when a local privileged port is used for forwarding. **Note:** At the time of this release, remote extensions do not support elevating for privileged ports.
|
||||
|
||||
![Setting port attributes](images/1_53/ports-attributes.gif)
|
||||
|
|
Загрузка…
Ссылка в новой задаче