Skip to content

Conversation

@pcastellazzi
Copy link
Contributor

Visual Studio Code, when run from WSL (Windows Subsystem for Linux) uses WSL_DISTRO_NAME presence to detect it. When it fails to do so its spawn the GUI instead of running the CLI application.

Fixes: #21037

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

Visual Studio Code, when run from WSL (Windows
Subsystem for Linux) uses WSL_DISTRO_NAME presence
to detect it. When it fails to do so its spawn the
GUI instead of running the CLI application.
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect implementation first time, thanks and great work @pcastellazzi!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Nov 13, 2025
Merged via the queue into Homebrew:main with commit af298e2 Nov 13, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

brew bundle is running Visual Studio Code GUI

2 participants