oleg-shilo / Favorites.vscode

VSCode extension for managing Favorites
MIT License
23 stars 6 forks source link

Sync across machines #24

Closed carlocardella closed 2 years ago

carlocardella commented 3 years ago

Is it possible to sync the favorite lists across machines?

mbaas2 commented 3 years ago

If you sync your settings using built-in methods, favorites will be synced as well. I don't think you need to do anything special - worked out of the box, IIRC.

carlocardella commented 3 years ago

Odd, I do use the built-in method (all toggles enabled) but favorites are not sync'ed across machines. Maybe I can trace the sync operation, I'll take another look

oleg-shilo commented 3 years ago

I haven't try to synch via settings but, yes I would expect it to work. You can check your all lists on the source and the destination machines: C:\Users\<user>\AppData\Roaming\Code\User\favorites.user

If it did not sync :( you can just copy/move the lists. They are just text files after all.

carlocardella commented 3 years ago

Favorites are not sync'ed on my machines; also, I have enabled all options to sync everything but there is no "favorites" listed. I assume it may be possible using the Shan Khan extension since it allows to sync custom user files but I would prefer to stay with the built-in sync if possible.

image

oleg-shilo commented 3 years ago

it's probably quite clear that it there is not much that can be done from the extension to "fix" another extension/built-in product to work correctly or differently.

I would expect any sync solution to handle all product specific content of the user profile. That's why by default the fav lists are stored there by default:

    if (os.platform() == 'win32')
        return path.join(process.env.APPDATA, 'Code', 'User', 'favorites.user');
    else if (os.platform() == 'darwin')
        return path.join(process.env.HOME, 'Library', 'Application Support', 'Code', 'User', 'favorites.user');
    else
        return path.join(process.env.HOME, '.config', 'Code', 'User', 'favorites.user');

Why it does not pick them it's a mystery for me.