- Notifications
You must be signed in to change notification settings - Fork34
Open
Description
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:Lines 716 to 733 in2d7dac8
constuserConfig=userConfigSSH.reduce( (acc,line)=>{ leti=line.indexOf("="); if(i===-1){ i=line.indexOf(" "); if(i===-1){ // This line is malformed. The setting is incorrect, and does not match // the pattern regex in the settings schema. returnacc; } } constkey=line.slice(0,i); constvalue=line.slice(i+1); acc[key]=value; returnacc; }, {}asRecord<string,string>, ); Setting any
SetEnv
variables causes the defaultSetEnv CODER_SSH_SESSION_TYPE=vscode
to be removed. This is because we use a map to store the key/value pairs.You cannot have multiple
SetEnv
config lines, only one will be processed.
Metadata
Metadata
Assignees
Labels
No labels