Skip to content

Add WSL support to codespace code command #4709

@mislav

Description

@mislav

Opening URLs and programs from gh should ideally use wslview under WSL instead of xdg-open. In the past, we've added WSL support for URLs in #1708 (although it now lives here). However, the gh cs code command does not use github.com/cli/browser package, but instead uses github.com/skratchdot/open-golang/open, which doesn't support wslview.

A fix would be to either submit wslview support upstream to skratchdot/open-golang or to switch opening the vscode:// URL over to the cli/browser package.

Originally posted by @mislav in #4625 (review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-3Affects a small number of users or is largely cosmeticwindowsRelated to Windows hosts or runners

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions