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

73 строки
3.4 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

# February 2020 (version 1.43)
## Visual Studio Code Remote Core
2020-02-27 04:15:14 +03:00
### Open remote workspaces via application links
2020-02-26 14:25:44 +03:00
2020-02-27 04:15:14 +03:00
VS Code can now open a remote workspace via protocol links.
2020-02-26 14:25:44 +03:00
2020-02-27 04:15:14 +03:00
The syntax is as follows:
```bash
2020-02-26 14:26:34 +03:00
vscode://vscode-remote/<remoteName>+<resolverArguments>/<path>
vscode-insiders://vscode-remote/<remoteName>+<resolverArguments>/<path>
2020-02-26 14:25:44 +03:00
```
2020-03-02 11:57:14 +03:00
### Recommendations for remote extensions
2020-03-02 17:47:51 +03:00
When opening a link to a remote workspace, but the corresponding remote extension is not yet installed, a recommendation makes it easy to do so:
2020-03-02 11:57:14 +03:00
![Remote extension recommendation](images/1_43/remote-recommendation.png)
## SSH
2020-02-29 02:39:18 +03:00
### Stabilized support for Windows hosts
2020-03-09 04:40:04 +03:00
We have had experimental support for Windows hosts in VS Code Insiders for a few months, but we are now ready to add this support to the VS Code Stable release!
2020-02-29 02:39:18 +03:00
### Support for macOS hosts
2020-03-09 04:40:04 +03:00
There is now support for connecting to macOS hosts. You don't need to do anything - when you connect to the host, VS Code will automatically detect which platform you are connecting to. And it is already available in the Stable version of VS Code.
2020-02-29 02:39:18 +03:00
2020-03-09 04:40:04 +03:00
### Connection sharing mode enabled by default
2020-02-29 02:39:18 +03:00
[A few months ago](https://github.com/microsoft/vscode-docs/blob/main/remote-release-notes/v1_39.md#ssh-connection-sharing), we added a new connection mode for Remote - SSH that creates a single SSH connection per host and can be shared between windows and across window reloads. Connection sharing reduces the time it takes to open a new window and the number of times you need to enter your password. It has been available behind a setting but this mode is now enabled by default.
2020-02-29 02:39:18 +03:00
## Containers
2020-03-02 17:47:51 +03:00
### New configuration properties
The `devContainer.json` file supports additional properties:
2020-03-09 04:40:04 +03:00
* `initializeCommand` can be used to run a command before building or connecting to a container. The property can be set to a string, which is run in a shell, or to an array of strings, which are run without a shell.
2020-03-02 21:51:52 +03:00
2020-03-09 04:40:04 +03:00
* `build` allows you to define the Docker [build target](https://docs.docker.com/engine/reference/commandline/build/#specifying-target-build-stage---target) and [build arguments](https://docs.docker.com/engine/reference/builder/#arg). It is now also possible to specify the `dockerfile` (note: all lowercase) and `context` properties inside the `build` section (the old location is still supported).
2020-03-02 21:51:52 +03:00
Here is an example:
2020-03-02 17:47:51 +03:00
```json
{
"build": {
2020-03-03 13:01:43 +03:00
"dockerfile": "../Dockerfile",
"context": "..",
"target": "development",
2020-03-02 17:47:51 +03:00
"args": {
2020-03-03 13:01:43 +03:00
"ARG1": "FOO",
"ARG2": "BAR"
2020-03-02 17:47:51 +03:00
}
}
}
```
2020-03-09 04:40:04 +03:00
### Dotfiles repository settings
2020-03-02 17:47:51 +03:00
In the last iteration, we added support for [dotfiles repositories](https://github.com/microsoft/vscode-docs/blob/vnext/remote-release-notes/v1_42.md#dotfiles-repository-support). Dotfiles are a generally useful mechanism, and are not only used by VS Code Dev Containers. With that in mind, there are now general settings named `dotfiles.*`, which will eventually allow you to define `dotfiles` preferences with a single setting.
2020-03-09 04:40:04 +03:00
![General dotfiles settings](images/1_43/general-dotfiles-settings.png)
2020-03-02 21:51:52 +03:00
## WSL
### Docker in WSL
The Windows team has been busy adding Docker support to the Windows Subsystem for Linux (WSL) and you can learn how to work with Docker, VS Code, and WSL 2 from the [Using Docker in WSL 2](https://code.visualstudio.com/blogs/2020/03/02/docker-in-wsl2) blog post.