kdcro101 / vscode-favorites

Add files and directories to workspace favorites. You can create groups (and subgroups) of favorite items with files and folders. Time saver for complex projects.
MIT License
49 stars 13 forks source link

Missing favorites #20

Closed csicky closed 5 years ago

csicky commented 5 years ago

Hi, thanks for this helpful extension. Today I see the favorites are not visible anymore, instead I receive this error in the screenshot. Please let me know what other info you need in order to be able to investigate this.

Version 2.1.2

image

andersomsousa1406 commented 5 years ago

I'm also having the same problem

kdcro101 commented 5 years ago

@csicky , @andersomsousa1406,

Thank you for your feedback.

Please post your .favorites.json contents. There was some favorites.json structure modification.

csicky commented 5 years ago
[
    {
        "type": "File",
        "name": "d:\\folderName\\src\\modules\\translations.js",
        "parent_id": null,
        "workspacePath": "src\\modules\\translations.js",
        "id": "esuvqW3gCJmDarOV"
    },
    {
        "type": "File",
        "name": "d:\\folderName\\src\\modules\\utils.js",
        "parent_id": null,
        "workspacePath": "src\\modules\\utils.js",
        "id": "GIcbfgMBDt0mSAK7"
    },
    {
        "type": "File",
        "name": "d:\\folderName\\src\\store\\getters.js",
        "parent_id": null,
        "workspacePath": "src\\store\\getters.js",
        "id": "GrbTs18C0gXmeYUK"
    }
]

Here it is, but I guess in this case it's enough to remove the files and add them again and I will have the new JSON.

csicky commented 5 years ago

Wow, you are so fast! Thank you for the fix, I have now version 2.1.4 and the favorites are back.

kdcro101 commented 5 years ago

@csicky ,

Thank you for your feedback.

Latest version is 2.1.5

If you have any problems, open issue.