Skip to content

Explore adopting the CLI for starting/managing the VS Code Server on WSL  #7864

Open

Description

Instead of downloading the server distro, install the standalone CLI

What's missing in the CLI:

  • bring back code serve-local
  • new parameter --download-folder to pass a folder that contains already downloaded server distros archives. The resolver will try to pre-download the distros on the client to avoid download issues on the WSL distro side.
  • more structured progress reporting in the CLI: download and unpackage percentage

Optional:
Use the CLI as proxy to connect to a server port, replacing the current proxy solution

  • resolver starts code serve. Server is downloaded and started on some port or socket path on the WSL side.
  • resolver starts a local proxy server and returns that address as the resolver result. E.g. localhost:3456
  • VS Code makes a connection to that local address.
  • The local proxy calls the cli on the WSL side wsl -e /somepath/code --connect-local and uses stdin/out to proxy the requests
  • wsl -e /somepath/code --connect-local connects to the server stated by code serve.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions