vscode-docs/remote-release-notes/v1_61.md

42 строки
1.9 KiB
Markdown
Исходник Обычный вид История

2021-09-30 14:41:55 +03:00
# September 2021 (version 1.61)
## Core
### Port protocol for 443 and 8443 defaults to https
2021-10-04 18:59:40 +03:00
Since ports 443 and 8443 are often `https`, VS Code will now default them to use `https`. This can be overridden with the `"remote.portsAttributes"` setting if the new behavior is not wanted.
2021-09-30 14:41:55 +03:00
### DNS names in forwarded ports
2021-10-04 17:25:23 +03:00
DNS names can now be specified when forwarding a port. For example, if you have a MongoDB database available at `db:1234` on your remote, you can enter `"db:1234"` in the **Ports** view and your remote `db:1234` will be available locally at `localhost:1234`. For remotes with a `devcontainer.json`, you can also specify the DNS name in `forwardPorts`:
2021-09-30 14:41:55 +03:00
```json
{
"forwardPorts": [ "db:5432" ]
}
```
2021-10-04 17:25:23 +03:00
Forwarded ports that include a non-localhost DNS name show the name in the **Ports** view:
2021-09-30 14:41:55 +03:00
2021-10-07 17:54:11 +03:00
![Forwarded port with a DNS name](images/1_61/forwarded_port_dns.png)
2021-10-04 16:03:21 +03:00
2021-10-06 12:51:55 +03:00
## Containers (version 0.202.x)
2021-10-04 16:03:21 +03:00
2021-10-06 18:18:28 +03:00
### Container features
2021-10-04 16:03:21 +03:00
2022-10-05 22:08:40 +03:00
Many of the dev container definitions now support adding tools and languages as easy to drop-in features. The **Dev Containers: Add Dev Container Configuration Files...** command at the end shows the list of available features and the **Dev Containers: Configure Container Features** command allows you to update an existing configuration.
2021-10-04 16:03:21 +03:00
2021-10-04 17:25:23 +03:00
![Configure container features list](images/1_61/configure_container_features.png)
2021-10-04 16:03:21 +03:00
There is also support for IntelliSense to edit the new `"features"` property in the `devcontainer.json` directly.
2021-10-04 17:25:23 +03:00
![Container features IntelliSense](images/1_61/container_features_intellisense.png)
2021-10-04 16:03:21 +03:00
2021-10-04 17:25:23 +03:00
### Execute in WSL setting
2021-10-04 16:03:21 +03:00
On Windows, to support having Docker CE or Podman installed in Windows Subsystem for Linux (WSL), the new **Execute in WSL** (`dev.containers.executeInWSL`) user setting lets the Dev Containers extension run all CLI commands in WSL.
2021-10-04 16:03:21 +03:00
![Execute in WSL Setting.](images/1_61/execute_in_wsl.png)
2021-10-04 16:03:21 +03:00
When not enabled, CLI commands are still run in WSL for workspace folders on a WSL filesystem.