PowerToys: [PT Run] VSCode workspaces doesn't show workspaces

Microsoft PowerToys version

“0.51.1”

Running as admin

  • Yes

Area(s) with issue?

PowerToys Run

Steps to reproduce

  1. Open a workspace from a .code_workspace file.

  2. Attempt to use PT Run { command to open the code_workspace

PowerToysReport_2021-12-09-09-58-28.zip

✔️ Expected Behavior

I’m expecting workspaces to show in powertoys run not just folders.

In the example below { em should show Emma (Workspace) as an option

❌ Actual Behavior

Searching for “emma” gives no results in PTR, despite being in my recently opened list.

image

image

Other Software

VSCode 1.63.0 (user setup)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 15 (5 by maintainers)

Commits related to this issue

Most upvoted comments

The was fixed in in 0.53. Head over to https://aka.ms/installpowertoys to try it out

@costeabc Can you go to the control panel and see if you only have “Microsoft Visual Studio Code (User)” installed or do you have the admin version too?

I’ve juts checked and it seems that I do have two versions installed. One with (User) and one without. I’m assuming I can safely uninstall one of the versions and that should solve the issue.

Yes, for the duplication it will solve the issue, i think.

For the rest we need to develop a solution. We have two options:

  • either we scan for files that have the extension .code-workspace (this will only work for workspaces that are storage in windows, not for workspaces in remote ssh machines or wsl)
  • or we only show the previously opened workspaces (that will work for windows, wsl, remote ssh, …)

Additionally, in my case, the folders appear twice in the search results. image

@costeabc Can you go to the control panel and see if you only have “Microsoft Visual Studio Code (User)” installed or do you have the admin version too?

I can repro this. The difference here is that this is a saved workspace (file). If I am correct all the other entries (without workspace) in it`s name should work. Is this correct?

After repro I have this data in the json:

 "openedPathsList": {
        "entries": [
            {
                "workspace": {
                    "id": "e9902a1f152f6119951899b7778e498e",
                    "configPath": "file:///c%3A/Users/Heiko/workspace.code-workspace"
                },
                "label": "C:\\Users\\Heiko\\workspace (Arbeitsbereich)"
            },
            {
                "folderUri": "file:///c%3A/Users/Heiko/Pictures"
            },
            {
                "folderUri": "file:///c%3A/Users/Heiko/Desktop"
            }
        ]
    },