vscode-workspace-switcher icon indicating copy to clipboard operation
vscode-workspace-switcher copied to clipboard

WSL workspaces

Open ArbiterOfBuffoonery opened this issue 2 years ago • 1 comments

Is it possible to save a WSL workspace such that I can open the WSL instance in a WSL workspace from the open windows vs code instance?

I have a bunch of windows workspaces that I open using the keyboard shortcut, and I just created a new WSL workspace...What I would love to do is use the shortcut and have the WSL workspace included in the list so that when I pick it, it runs in the WSL context but using the same command sequence as I would for a windows workspace.

ArbiterOfBuffoonery avatar Apr 08 '22 17:04 ArbiterOfBuffoonery

I think I may have figured this out...I needed to use a uri field instead of a path field. Also the remoteAuthority needs to be added. My distro says 'WSL: Ubuntu-20.04' which became wsl+ubuntu-20.04 in the uri field and wsl+Ubuntu-20.04 in the remoteAuthority field.

{
    "folders": [
            {
                "uri": "vscode-remote://wsl+ubuntu-20.04/<path to folder>"
            }
    ],
    "remoteAuthority": "wsl+Ubuntu-20.04",
    "settings": {}
}

ArbiterOfBuffoonery avatar Apr 08 '22 21:04 ArbiterOfBuffoonery