-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cli] desktop code is opened when running 'code' in remote terminal #6625
Comments
Did you run the commands from 4 on the local or remote machine? I'd anticipate that if running on your remote machine, it would make sense to open VS Code on your remote (i.e. as when running other commands, they run against the remote, whether it's checking the version of a toolset or running code). |
Step 4 should be executed from the VSCode terminal on the local machine, which is connected to the remote machine by “Remote - SSH” On my other remote machine (Ubuntu Server 20.04), where I have not installed VSCode but instead connect with “Remote - SSH” exclusively, the editor opens in the local VSCode as expected. |
cc @tanhakabir the original behavior sounds reasonable to me, but perhaps there are other considerations here that you could think of. |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
What information is needed? I thought I answered so the questions? Was the “need more info tag just not removed? |
Reopening as it looks like the info was provided - cc @tanhakabir |
pinging @aeschli again for ideas |
I'll look at this for the May release. The problem us that the login shell adds the path of the desktop vscode to the PATH environment variable first. So the remote one is shadowed by the desktop one. The idea is to improve the desktop cli to detect that we are in a remote terminal. |
Thanks everyone for fixing this for me! |
Marking |
Steps to Reproduce:
a. git config --global core.editor "code --wait"
a. git rebase -i
b. git config --global -e
If VSCode has not been installed on the remote machine, then the "code --wait" works as expected.
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No
The text was updated successfully, but these errors were encountered: