Skip to content

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

Open

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggitwslIssue in vscode-remote WSL

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions