Repository navigation
Fix VS Code Workspaces shared storage lookup - #47505
Merged
Boliang Zhang (LegendaryBlair) merged 1 commit intoJun 21, 2026
Merged
Conversation
Read recently opened VS Code workspaces from the shared storage database introduced in VS Code 1.118 while keeping the legacy storage fallback. Fixes microsoft#47445
Contributor
Author
|
@microsoft-github-policy-service agree |
Niels Laute (niels9001)
requested a review
from Davide Giacometti (davidegiacometti)
May 19, 2026 09:21
Davide Giacometti (davidegiacometti)
approved these changes
May 20, 2026
Collaborator
There was a problem hiding this comment.
Wow! The number of projects has grown a lot since my last PowerToys build! 😄
It also looks like the workspace path changed in the latest VS Code updates.
Even though I wasn’t able to test it with all VS Code editions, I can confirm I am able to reproduce the issue with PowerToys 0.99.1 and VS Code 1.121.0, and this PR fixes it.
The changes look good to me and the introduced code also looks very safe.
LGTM 👍
Thanks for the fix Eymard Silva (@MardSilva)
|
Any update on this? A lot of people are waiting for this fix. |
|
Please merge this, seems like it's ready 🙏🏻 |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Boliang Zhang (LegendaryBlair)
approved these changes
Jun 21, 2026
Boliang Zhang (LegendaryBlair)
merged commit Jun 21, 2026
e1b1a8d
into
microsoft:main
11 checks passed
Boliang Zhang (LegendaryBlair)
pushed a commit
that referenced
this pull request
Jun 22, 2026
## Summary Fixes VS Code Workspaces recent entries discovery after VS Code 1.118 moved `history.recentlyOpenedPathsList` to the shared application storage database. The plugin now probes both the legacy `User/globalStorage/state.vscdb` database and the new shared storage database for VS Code Stable, Insiders, Exploration, VSCodium, VSCodium Insiders, and portable installs. It also deduplicates results that may appear in both locations. Fixes #47445 ## Validation - Reviewed the change against the issue's documented VS Code 1.118 storage paths. - Attempted local focused build from `src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.VSCodeWorkspaces` with `tools/build/build.cmd -Platform x64 -Configuration Debug`. - Build was blocked by local environment/tooling issues unrelated to this C# change: missing/invalid VC tooling/Windows SDK. (cherry picked from commit e1b1a8d)
7 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes VS Code Workspaces recent entries discovery after VS Code 1.118 moved
history.recentlyOpenedPathsListto the shared application storage database.The plugin now probes both the legacy
User/globalStorage/state.vscdbdatabase and the new shared storage database for VS Code Stable, Insiders, Exploration, VSCodium, VSCodium Insiders, and portable installs.It also deduplicates results that may appear in both locations.
Fixes #47445
Validation
src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.VSCodeWorkspaceswithtools/build/build.cmd -Platform x64 -Configuration Debug.