1

I'm using the vscode remote tunnels, which I believe are a relatively new feature. When I follow the instructions here, and connect to the tunnel, the .vscode-server directory gets installed in the root directory on the remote machine, but I would like it to be installed in a specific directory- ideally with a setting similar to the remote.SSH.serverInstallPath.

I know there is the cli option --cli-data-dir for the code tunnel command, but despite specifying this and the remote.SSH.serverInstallPath for the corresponding host it still installs in the root directory. I'm not sure if I'm missing some setting or if this just isn't available yet.

emv
  • 101
  • 1
  • 4
  • I was playing with this today and `--cli-data-dir` moves the contents normally in ~/.vscode-cli into . I also set remote.SSH.serverInstallPath but it didn't do anything for me as far as moving .vscode-server. Did you figure this out? – Andre Marin Mar 31 '23 at 20:55
  • No I didn't, I actually ended up going with a workflow using a third party [wrapper](https://github.com/coder/code-server) that essentially spins vscode up as a server so you can create a tunnel with vscode very similarly to how you might with jupyter notebook. This was the easiest way I found for development on the compute nodes of our 2FA HPCs. If you're interested, this [blog post](https://isaiahtaylor.medium.com/use-vs-code-on-a-supercomputer-15e4cbbb1bc2) has some details. The native vscode tunnel approach may be better in future once it has had more development/documentation. – emv Apr 07 '23 at 10:02

0 Answers0