jeanp413 / open-remote-ssh

VSCode Remote Development: Open any folder on a remote machine using SSH.
MIT License
309 stars 43 forks source link

insert the remote-cli path into PATH #152

Closed GitMensch closed 5 months ago

GitMensch commented 5 months ago

under each server installation we have "bin/remote-cli"; please add PATH before starting the server binary as this ensures it is usable within the terminal and tasks;: and from what I've seen in online setups, I think that's commonly done and only missing here (it is not part of the shell integration scripts from the vsode-repo).

... or may there be a reason that in buildUserEnvironment() https://github.com/microsoft/vscode/blob/7be0a5bd10404599a1ce0bbea4ce91c06f50900c/src/vs/server/node/extensionHostConnection.ts#L52 remoteCliBinFolder is not set to correctly?

jeanp413 commented 5 months ago

This is done by vscode itself when creating a terminal as you pointed in the source code and it's working for me using vscodium connecting to a linux remote, what remote OS are you connecting to?

GitMensch commented 5 months ago

Checked again: bash profile did a backup of PATH and by a later script this was restored... so not-a-bug here (I've worked around that by adjusting the bash shell integration script unsetting the backup leaving PATH intact).