Skip to content

Fix VS Code Workspaces shared storage lookup - #47505

Merged
Boliang Zhang (LegendaryBlair) merged 1 commit into
microsoft:mainfrom
MardSilva:BugFix-47445
Jun 21, 2026
Merged

Boliang Zhang (LegendaryBlair) merged 1 commit into
microsoft:mainfrom
MardSilva:BugFix-47445

Conversation

@MardSilva

Copy link
Copy Markdown
Contributor

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.

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
@MardSilva

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@davidegiacometti Davide Giacometti (davidegiacometti) left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@jklassen

Copy link
Copy Markdown

Any update on this? A lot of people are waiting for this fix.

@niels9001 Niels Laute (niels9001) added the Product-PowerToys Run Improved app launch PT Run (Win+R) Window label Jun 5, 2026
@muchisx

Miguel Ángel (muchisx) commented Jun 11, 2026 •

Copy link
Copy Markdown

Please merge this, seems like it's ready 🙏🏻

@niels9001 Niels Laute (niels9001) added the Hot Fix Items we will product an out-of-band release for label Jun 18, 2026
@LegendaryBlair

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@LegendaryBlair
Boliang Zhang (LegendaryBlair) merged commit e1b1a8d into microsoft:main Jun 21, 2026
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.100.1 Hot Fix Items we will product an out-of-band release for Product-PowerToys Run Improved app launch PT Run (Win+R) Window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PowerToys Run VS Code plugin - No results since vscode 1.118

6 participants