Skip to content

remote.SSH.serverInstallPath does not respect environment variables now #9474

Description

@Lablace
  • VSCode Version: 1.86.0 (system setup)
  • Local OS Version: Windows_NT x64 10.0.19045
  • Remote OS Version: Ubuntu 22.04.1 LTS (Linux kernel 5.15.0-88-generic, glibc 2.35)
  • Remote Extension/Connection Type: Containers/WSL/Server
    Server
  • Logs: not needed

Steps to Reproduce:

  1. Change the value in one of the key-value pairs in remote.SSH.serverInstallPath setting to one that contains well-known representives for home directory (like ${HOME} and ~ (tilde)).
  2. Connect to the modified remote server, it now creates the directory with the above name and tries to install the vscode-server there rather than expanding it to home directory where a vscode-server has been already installed.
  3. Change the modified value back to an absolute path, like /home/alice, and retry connecting to the server, the installed vscode-server in home directory can be found now.

Prior to VSCode 1.86.0, I've been using ${HOME} in my remote.SSH.serverInstallPath without any problem, so I am sure it had the ability to expand these before.

Does this issue occur when you try this locally?: Yes/No
No, Remote-SSH is needed.
Does this issue occur when you try this locally and all extensions are disabled?: Yes/No
No, Remote-SSH is needed.

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from postersshIssue in vscode-remote SSH

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions