Repository navigation
[Visual Studio Code] Fix Opening Workspaces on Windows - #29797
Conversation
Windows passed the file:// URI of .code-workspace entries as a positional argument to the editor, and the VS Code CLI treats positional arguments as paths. VS Code therefore opened an empty untitled file instead of the workspace. Open all local entries by path on Windows, completing the revert in raycast#28913.
|
Thank you for your contribution! 🎉 🔔 @thomaspaulmann @iainsimmons @macbookandrew @cy-98 @immint023 @vimtor @tonka3000 @aka-rabbi-inv @oilbeater @QIanGua @hakob8956 @erics118 @tmwrnr @tleo19 @aeither @yug2005 @VatsalSy @Tarocch1 @list-jonas @xilopaint @lacherogwu @Nenuial @robertocinetto @ecntu @raxityo @yusifaliyevpro @jkker @sillasHead @MuhammadrizoDeveloper you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. 📋 Quick checkout commandsBRANCH="fix/vscode-windows-workspace"
FORK_URL="https://github.com/KamilDev/extensions.git"
EXTENSION_NAME="visual-studio-code-recent-projects"
REPO_NAME="extensions"
git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run devWe're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. |
Greptile SummaryThe PR fixes Windows workspace opening by passing the local filesystem path to the editor and updates extension metadata.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (3): Last reviewed commit: "Update CHANGELOG.md" | Re-trigger Greptile |
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@KamilDev). Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag. |
Description
Fixes opening
.code-workspaceentries on Windows.In
LocalItem, the open action passed thefile://URI to the editor for workspace entries on Windows, while folder and file entries were opened by path. The VS Code CLI treats positional arguments as paths (code.exe [options] [paths...]; URIs need--file-uri/--folder-uri), so the URI resolved to a non-existent relative path and VS Code opened an empty untitled editor in the already-open window instead of the workspace.This is a leftover from #28072: the revert in #28913 restored
open(path, editorApp)only in theelsebranch, so workspace entries kept opening through the URI. This restores the pre-#28072 line:Validation
.code-workspacepicked fromSearch Recent Projectsused to open as a new empty file, and now opens as the workspace. Reverting the diff reproduces the old behavior.npm run lintnpm run buildChecklist
npm run buildandnpm run lint; the change itself was verified in Raycast in development modeassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool