use remote cli when in remote terminal #150372
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes microsoft/vscode-remote-release#6625
Replaces #150131
This fix is for Linux/Mac only. On Linux, the shell login script adds
/usr/local/bin
to the front of the path. The Mac reorders the PATH segments, see #99878. On remote systems that also have desktop code installed, this causes the desktop code shell script to be found before the remote cli code script.The fix is to have the Desktop code / code-insiders shell script detect if it is invoked in a remote terminal and forward he call the remote cli command
VSCODE_IPC_HOOK_CLI
env variable.remote-cli
On Windows, the remote code command is always first.