Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Visual Studio Code Extension doesn't find recent projects on Windows #1368

Open
milnak opened this issue Feb 14, 2025 · 11 comments
Open

Comments

@milnak
Copy link

milnak commented Feb 14, 2025

Describe the bug
Visual Studio Code Extension doesn't find recent projects on Windows

To Reproduce
Search for recent VS Code project by name in ueli with Visual Studio Code Extension enabled

Expected behavior
Project found

Screenshots
Not found

Environment

  • OS: Windows
  • Version: 9.18.0

Additional context
I did a cursory glance at the VSC extension source and it appears on windows, it's reading from "$env:AppData\Code\User\globalStorage\state.vscdb" however it appears that my recent list is in the SQLite file "$env:AppData\Code\User\workspaceStorage\1739574719901\state.vscdb" ?

@IrishBruse
Copy link
Collaborator

IrishBruse commented Feb 16, 2025

Looks like you use workspaces and they have recents are you trying to see the files you recently opened in that specific workspace?
As im not sure why it would be there did you refresh the extension if you opened a new project since Ueli was opened?

@milnak
Copy link
Author

milnak commented Feb 16, 2025

I was looking for recent projects.

Image

yet these don't show in ueli:

Image

Am I holding it wrong?

(yes, I hit F5 to refresh ueli)

@IrishBruse
Copy link
Collaborator

Click the reload button and see if it appears then

Image

@IrishBruse
Copy link
Collaborator

Ah ok so must be some weird behaviour with workspaces Ill look into reproducing this

@milnak
Copy link
Author

milnak commented Feb 16, 2025

ok. let me know if you need any vscdb from me to assist.

@IrishBruse
Copy link
Collaborator

If you could send a dump of it that would be great cause there should be a workspace entry in the globalStorage state.vscdb
SELECT json_extract(value, '$.entries') as entries FROM ItemTable WHERE key = 'history.recentlyOpenedPathsList'
https://inloop.github.io/sqlite-viewer/

@milnak
Copy link
Author

milnak commented Feb 16, 2025

[
    {
        "workspace": {
            "configPath": "file:///d%3A/repos/atari-vcs-disassembly/atari-vcs-disassembly.code-workspace",
            "id": "c46e232bdcf33a2c6a16b0c566ca4c64"
        }
    },
    {
        "folderUri": "file:///d%3A/repos/atari-vcs-disassembly"
    },
    {
        "fileUri": "file:///c%3A/Users/jeffm/OneDrive/Documents/PowerShell/Microsoft.PowerShell_profile.ps1"
    },
    {
        "fileUri": "file:///c%3A/Users/jeffm/doublecmd-backup.ps1"
    },
    {
        "fileUri": "file:///c%3A/Users/jeffm/AppData/Roaming/Code/User/globalStorage/storage.json"
    },
    {
        "fileUri": "file:///c%3A/Users/jeffm/scoop-listinfo.csv"
    }
]

@IrishBruse
Copy link
Collaborator

And thats from "$env:AppData\Code\User\globalStorage\state.vscdb"

Image

🤔

@milnak
Copy link
Author

milnak commented Feb 17, 2025

weird that I'm not getting that here. I dont see any logging in the ueli debug log -- is there a way to enable it?

@IrishBruse
Copy link
Collaborator

No I should add some logging but what you sent is all that really I could log all the extension does is pull that recents list from the globalStorage\state.vscdb and it looks fine i just hard coded in my local setup and the workspaces showed up fine as you can see in my screenshot not really sure how to reproduce this im afraid

@milnak
Copy link
Author

milnak commented Feb 17, 2025

best bet I'd think would be to add logging and I can try a repro here, or if you point me to debugging instructions, I can add logging to your extension and try a local repro here.

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

No branches or pull requests

3 participants