VisualStudioCodeForCommandPalette icon indicating copy to clipboard operation
VisualStudioCodeForCommandPalette copied to clipboard

Workspaces from custom folders

Open thePier opened this issue 1 year ago • 18 comments

Rather than saving the VSCode workspace file in one of the default folders I'm saving them in more than a custom path, but at this moment there's no option to look for them.

The VSCode integration found in the old PowerToys Run just showed up workspace files from any location on my PC without any additional configuration

thePier avatar Nov 27 '25 09:11 thePier

In the extension settings, check "Enable Visual Studio Code (Custom)"

kenijo avatar Jan 16 '26 20:01 kenijo

I'm also having issues with this, even with the (Custom) option ticked. The README also mentions a Enable Logging setting which I can't seem to find anywhere to help debug. I've looked at the code and it seems like it should pick up the custom installation (installed via scoop in my case), but I haven't been able to get it working.

james-camilleri avatar Mar 04 '26 14:03 james-camilleri

(just noticed a new notification from the last message, lost the one from you kenijo sorry)

I have a workspaces file in several project folders, but none are picked up even if I enable the "Custom" as you hinted.

folder "Project A" |
| - folder "smh1" | - folder "smh2" | - a.code-workspace

folder "Project B" |
| - folder "foo1" | - folder "foo2" | - b.code-workspace

thePier avatar Mar 07 '26 10:03 thePier

@thePier I tested this scenario and the feature appears to be working correctly on my side.

The Enable Visual Studio Code (Custom) option is unrelated to this issue.

Image

tanchekwei avatar Mar 11 '26 14:03 tanchekwei

I'm also having issues with this, even with the (Custom) option ticked. The README also mentions a Enable Logging setting which I can't seem to find anywhere to help debug. I've looked at the code and it seems like it should pick up the custom installation (installed via scoop in my case), but I haven't been able to get it working.

@james-camilleri In the latest version, a new setting was added to help with custom or portable installations. You can try enabling it and set the path to your VS Code installation directory. For Scoop installations, the path should be something like: C:\Users\<username>\scoop\apps\vscode\1.110.1

Image

tanchekwei avatar Mar 11 '26 14:03 tanchekwei

Ok this seems to have helped, although it doesn't work with the current symlink that scoop uses, which means that every time VS Code is updated I'd need to manually update the path. Might end up switching to a standard VS Code installation if it ends up being too much of a hassle, but it's already great that I can see the projects, thank you! The { functionality on PowerToys run is the thing I used most, so I might be able to switch to Command Palette now I've got the plugin working. Thanks for the help, appreciate it.

james-camilleri avatar Mar 11 '26 15:03 james-camilleri

I can confirm that the "search" works if from the main Command Palette I explicitly select the extension and then type something. I didn't try this way before.

The original problem I have is that if I write the name of the workspace file in the "main" Command Palette window without selecting the extension nothing shows up automatically; It shows eventually a result as a fallback if I include the .code-workspace extension and the full file name. I expected this to work without this steps given how the other "PowerToys Run" feature just picked up automatically the workspace files from the get go even with a partial name entered

thePier avatar Mar 12 '26 10:03 thePier

Yeah, it’s the same for other extensions, but you can set a shortcut like Alt + Space to activate the extension.

tanchekwei avatar Mar 12 '26 12:03 tanchekwei

Then I'd say my "issue" is closed since it's working as expected, just I was expecting something different 🤣 Sorry to have you hunting for nothing.

thePier avatar Mar 16 '26 13:03 thePier

see https://github.com/microsoft/PowerToys/issues/45922

tanchekwei avatar Mar 16 '26 13:03 tanchekwei

Just following up that this still doesn't seem to work with symlinks so I need to update the path manually every time there's a vscode update. Slightly less than ideal, so if this is a simple fix it would be great, but I am immensely grateful this works at all now, so thanks!

james-camilleri avatar Mar 25 '26 11:03 james-camilleri

@james-camilleri I tried using this path: C:\Users\<username>\scoop\apps\vscode\current\Code.exe

it will automatically follow whatever version current points to.

For example: run command scoop reset [email protected] -> Run extension Open command -> open in vscode 1.112.0 run command scoop reset [email protected] -> Run extension Open command -> open in vscode 1.113.0

No code changes needed.

tanchekwei avatar Mar 26 '26 10:03 tanchekwei

Yeah that's the path I used, but it doesn't seem to work when I use it. If I swap it out to the versioned path it works fine. How peculiar.

I'll try it again.

Just to clarify, what stops working is the actual listing of the available projects. Not sure if the actual open command would work since there's nothing to open when I use the /current path.

james-camilleri avatar Mar 26 '26 18:03 james-camilleri

I have tried this again – switching to current and refreshing the project list shows an empty list, putting a real version in (i.e. no symlinks) and refreshing the list again brings up the correct projects.

james-camilleri avatar Mar 27 '26 18:03 james-camilleri

@thePier fallbacks result is now supported

Image

setting to control maximum item show in the main page

Image

tanchekwei avatar Apr 08 '26 23:04 tanchekwei

@james-camilleri can u open a new issue on this if new version still not working

tanchekwei avatar Apr 08 '26 23:04 tanchekwei

@tanchekwei as soon as the change gets pushed with the next update I will try it. I suppose that the new setting for fallback items will be in the main Command Palette settings?

thePier avatar Apr 09 '26 12:04 thePier

@tanchekwei as soon as the change gets pushed with the next update I will try it. I suppose that the new setting for fallback items will be in the main Command Palette settings?

No is in the extension setting

tanchekwei avatar Apr 09 '26 13:04 tanchekwei