Skip to content

[vscode-recents] VS Code Recents empty on recent VS Code versions #264

@PiasekDev

Description

@PiasekDev

Extension name

vscode-recents

Description

The VS Code Recents extension is currently showing an empty list for me, although VS Code itself still shows recent projects correctly.

I am not completely sure this is the root cause, but from local debugging it looks like this may be related to recent VS Code storage changes.

What I checked:

  • Vicinae logs only show:
[EXTENSION] "Worker exited with code 1"
  • Querying the old VS Code state DB returns no row:
sqlite3 ~/.config/Code/User/globalStorage/state.vscdb \
    "select value from ItemTable where key = 'history.recentlyOpenedPathsList';"
  • Querying the new shared storage DB does return my recent projects:
sqlite3 ~/.vscode-shared/sharedStorage/state.vscdb \
    "select value from ItemTable where key = 'history.recentlyOpenedPathsList';" | jq .

This seems similar to issues/fixes in other projects after VS Code 1.118 moved recently opened history to shared application storage:

Possible fix, if this diagnosis is correct: for recent VS Code versions, read from ~/.vscode-shared/sharedStorage/state.vscdb first, then fall back to the legacy ~/.config/Code/User/globalStorage/state.vscdb.

Steps to reproduce

  1. Use VS Code 1.118+ with some recent projects visible in VS Code.
  2. Install/open the Vicinae VS Code Recents extension.
  3. Open the Recents command/view.

Expected behavior

The extension lists the same recent projects that VS Code shows.

Actual behavior

The Recents view is empty.

Vicinae version

v0.20.15 (commit a0b875caf)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions