title: Golang os/exec not executing vscode portable
body: <p>I'm attempting to launch vscode portable on Windows using a golang program. I have the code unpacked and the data directory created. Launching code portable from command line seems to work fine (see below).</p>
  <p>Here is what the code looks like:</p>
  <pre><code>log.Printf(&quot;Launching code\n&quot;)
  var pathtocode = filepath.Join(Home, &quot;code&quot;)
  codeSlice := [...]string{
      pathtocode,
      &quot;--new-window&quot;,
      &quot;--remote&quot;,
      fmt.Sprintf(&quot;ssh-remote+%s@%s&quot;, user, host),
      &quot;--wait&quot;,
      fmt.Sprintf(&quot;%s/ws.code-workspace&quot;, remoteHome()),
  }
  
  cmd := exec.Command(codeSlice[0], codeSlice[1:]...)
  cmd.Dir = Home
  log.Println(cmd)
  cmd.Stderr = os.Stderr
  cmd.Stdout = os.Stdout
  cmd.Stdin = os.Stdin
  err = cmd.Run()
  if err != nil {
      log.Fatal(err)
  }
  </code></pre>
  <p>The execution fails with exit code 1 but there is no output at all:
  <code>2022/01/25 12:15:39 mydebug.go:138: exit status 1</code></p>
  <p>If I copy the output from the Println and paste into command prompt it launches vscode portable and works as expected.
  <code>C:\Users\me\.mydebug\vscode\code --new-window --remote ssh-remote+user@host --wait /home/user/ws.code-workspace</code></p>
  <p>If I change the pathtocode to just &quot;code&quot; the program launches my installed vscode (in my path) and works using my installed version.</p>
  <p>I've tried a couple things (adding cmd /C, etc.), so far no love from vscode portable.</p>