Workspaces from custom folders
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
In the extension settings, check "Enable Visual Studio Code (Custom)"
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.
(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 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.
I'm also having issues with this, even with the (Custom) option ticked. The README also mentions a
Enable Loggingsetting 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 viascoopin 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
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.
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
Yeah, it’s the same for other extensions, but you can set a shortcut like Alt + Space to activate the extension.
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.
see https://github.com/microsoft/PowerToys/issues/45922
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 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.
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.
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.
@thePier fallbacks result is now supported
setting to control maximum item show in the main page
@james-camilleri can u open a new issue on this if new version still not working
@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?
@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