Skip to content

fix: No recent entries in current vscode versions#2

Open
maevic wants to merge 1 commit into
albertlauncher:mainfrom
maevic:main
Open

fix: No recent entries in current vscode versions#2
maevic wants to merge 1 commit into
albertlauncher:mainfrom
maevic:main

Conversation

@maevic
Copy link
Copy Markdown

@maevic maevic commented May 23, 2026

The storage location of the state.vscdb has changed in recent vscode versions. This PR uses the new location with a fallback to the legacy one.

The storage location of the state.vscdb has changed in recent vscode versions. This commit uses the new location with a fallback to the legacy one.
@maevic maevic requested a review from a team as a code owner May 23, 2026 11:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the plugin’s VS Code state database discovery to support the newer shared storage location introduced in recent VS Code versions.

Changes:

  • Add a “shared storage” state.vscdb path and keep the legacy path as a fallback.
  • Select the effective _stateDBPath based on whether the shared DB exists.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread __init__.py
Comment thread __init__.py
".config/Code/User/globalStorage/state.vscdb"
)

_stateDBPath = _sharedStateDBPath if os.path.exists(_sharedStateDBPath) else _legacyStateDBPath
@ManuelSchneid3r ManuelSchneid3r requested review from Sharsie and removed request for Bierchermuesli, tomsquest and vmaerten May 24, 2026 13:08
@ManuelSchneid3r
Copy link
Copy Markdown
Member

ManuelSchneid3r commented May 24, 2026

@Sharsie can cou take a look? (auto assignment didnt work)

Comment thread __init__.py
# VSCode 1.118+ moved this to a shared storage location
_sharedStateDBPath = os.path.join(
os.environ["HOME"],
".vscode-shared/sharedStorage/state.vscdb"
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.

Looking at vscode sources, there seem to be a bunch of storage locations that should be considered?
I'm not running 118 yet, but I can check after upgrading. I assume that the user db is going to be at .vscode/... and we may actually want to query both databases.
There are also profile databases, but that should probably be ignored, at least for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants