microsoft / microsoft/vscode-remote-release

using vs code CLI from within tunnel connection

Open
#9,251 9 comments 0 reactions 1 assignee View on GitHub

@connor4312 is already working on this.

Since Nov 29, 2023.

cli feature-request tunnels
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

When connecting to a remote host via ssh I can use the code CLI to check the tunnel statuses or the tunnel service, e.g.:

code tunnel status
code tunnel -h
code tunnel service -h

But when I connect to a remote host via the remote tunnel extension and run code from the terminal, the subcommands are no longer available.

when running

code --help

from within vs code on the remote host this gives

code --help
code 1.84.2

Usage: code [options][paths...]

To read from stdin, append '-' (e.g. 'ps aux | grep code | code -')

Options
  -d --diff <file> <file>                    Compare two files with each other.
  -m --merge <path1> <path2> <base> <result> Perform a three-way merge by providing paths for two modified versions of a file, the common origin of both modified versions and the output file to save merge results.
  -a --add <folder>                          Add folder(s) to the last active window.
  -g --goto <file:line[:character]>          Open a file at the path on the specified line and character position.
  -n --new-window                            Force to open a new window.
  -r --reuse-window                          Force to open a file or folder in an already opened window.
  -w --wait                                  Wait for the files to be closed before returning.
  -h --help                                  Print usage.

Extensions Management
  --list-extensions                   List the installed extensions.
  --show-versions                     Show versions of installed extensions, when using --list-extensions.
  --category <category>               Filters installed extensions by provided category, when using --list-extensions.
  --install-extension <ext-id | path> Installs or updates an extension. The argument is either an extension id or a path to a VSIX. The identifier of an extension is '${publisher}.${name}'. Use '--force' argument to update to latest version. To
                                      install a specific version provide '@${version}'. For example: 'vscode.csharp@1.2.3'.
  --uninstall-extension <ext-id>      Uninstalls an extension.

Troubleshooting
  -v --version Print version.
  --verbose    Print verbose output (implies --wait).
  -s --status  Print process usage and diagnostics information.

so the tunnel subcommmand is missing here. So that I cannot manage connections from remote. So currently I need to be on the same network like the remote machine?

when running

code tunnel status

on the remote machine, the fokus changes to the editor windows and opens two new files with names tunnel, status respectively.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.