Skip to content

[cli] desktop code is opened when running 'code' in remote terminal #6625

@callwyat

Description

@callwyat
  • VSCode Version: 1.66.0
  • Local OS Version: macOS 11.6.4
  • Remote OS Version: macOS 12.2.1
  • Remote Extension/Connection Type: SSH
  • Logs:

Steps to Reproduce:

  1. Install VSCode normally on the remote machine
  2. Set "code --wait" as the default editor for git on remote machine
    a. git config --global core.editor "code --wait"
  3. Connect to the remote machine via "Remote - SSH" into a folder with git SCM
  4. Use a git command that will invoke the default editor
    a. git rebase -i
    b. git config --global -e
  5. Notice that VSCode opened on the remote machine and not the local machine and be sad

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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugon-testplansshIssue in vscode-remote SSHverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions