VS Code

Goauld client VS Code remote mode

tealc vscode launches VS Code Remote-SSH against an agent through the same SSH data path used by tealc ssh.

Prerequisites

  • Install VS Code and make its code command available in the local PATH.
  • Install the VS Code Remote-SSH extension.
  • Confirm that tealc ssh AGENT_NAME works before troubleshooting VS Code.

Quick usage

tealc vscode [AGENT_NAME] [REMOTE_PATH]

REMOTE_PATH is the directory to open on the agent (defaults to the current directory).

Windows agents

On Windows agents, Goauld first prepares the SSH parent process by creating or reusing an sshd.exe hard link to the agent executable. If hard-link creation is unavailable, you can provide a standalone compatibility shim with the optional --shim flag:

tealc vscode AGENT_NAME --shim /path/to/goauld_shim_windows-amd64.exe

Build the Windows shim on demand with the client compiler when needed:

tealc compile --id shim --goos windows --goarch amd64

The resulting shim is placed under the compile output directory, in the shim subdirectory. The client validates the supplied shim before starting VS Code and uses it only when it is valid. Without --shim, VS Code requires the agent to be able to create the hard link.

Local state and connection reuse

Limitations and cleanup