2

Problem

When I start an interactive rebase from a windows cmd, the interactive gitlens rebase window pops up on vscode. When I do the same from wsl, the plain txt rebase file shows up on vscode.
Is there a way to make it so that when I rebase from the wsl, the gitlens rebase shows up?

Steps to reproduce

I Installed wsl with:

wsl --install

Then I selected the default:

wsl --setdefault Ubuntu

I then installed git again on the wsl with:

$ sudo apt-get install git

I then tried to set vscode as the default editor:

$ git config --global core.editor "/mnt/c/Users/user/AppData/Local/Programs/Microsoft\ VS\ Code/bin/code --wait"

I got the vscode path by running:

$ Which code
nick zoum
  • 7,216
  • 7
  • 36
  • 80

1 Answers1

3

I would recommend following a process similar to this article which involve:

  • installing the "remote development" extension
  • Close out of the VSCode instance you were just using to install the Remote Development extension, and bring up your Linux terminal (WSL).
  • Run the command: cd; code . (space dot)
  • Search for GitLens in the extensions, and click "Install in WSL: Ubuntu-20.04"

After installing GitLens on WSL, you should see the same interactive rebase window as when you use Git from CMD.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250