microsoft / microsoft/vscode-remote-release

Source Control UI Gives Incorrect Suggestion to Install Git for Windows When WSL VM Has No Git Installation

Open
#9,170 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug git wsl
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

  • VSCode Version: 1.76.0, 1.84.0, 1.85.0 (insiders) commit e55009850900a64eeb37b2228c79855ceff63914
  • Local OS Version: Windows 10 22H2 (In a KVM Virtual
  • Remote OS Version: Debian 12 Bookworm
  • Remote Extension/Connection Type: WSL

This is completely a GUI/documentation issue rather than a connection issue or a software bug/glitch, and thus I have no logs to provide.

Steps to Reproduce:

image

  1. Create a fresh WSL VM with a distro that does not include Git in the base distro (like Debian, for instance), or uninstall Git from a pre-existing one.
  2. Make sure that the WSL extension is installed.
  3. Connect to WSL Remote.
  4. Open the "Source Control" tab.
  5. Wait a few seconds, until the interface no longer says, "No source control providers registered". The VSCode server will not detect Git in the WSL VM, but the VSCode GUI will still suggest installing Git on the local Windows machine (even though it is already installed) rather than the actual solution of installing Git in WSL, making a missing Git install in WSL much more difficult to diagnose.

I honestly don't know if the VSCode API provides a way for extensions to change that suggestion based on the source control provider needs of the environment, so if you need me to, I can make a report in upstream VSCode.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.