vscode-coder
vscode-coder copied to clipboard
SSH config cannot use SetEnv without multiple problems
-
The only way to set an env is to use
SetEnv=MY_VAR=value. If you useSetEnv MY_VAR=true, the env var gets added to the config incorrectly and SSH fails to load because of bad splitting: https://github.com/coder/vscode-coder/blob/2d7dac8a5f5d9ce2cc6746490c73c8873737034f/src/remote.ts#L716-L733 -
Setting any
SetEnvvariables causes the defaultSetEnv CODER_SSH_SESSION_TYPE=vscodeto be removed. This is because we use a map to store the key/value pairs. -
You cannot have multiple
SetEnvconfig lines, only one will be processed.