Repository navigation
Closed
Description
Summary
This exploration will aim to support syncing you settings, extensions, keybindings, and snippets across multiple machines (local and remote) using a sign in service (account). The problem being addressed is that users don't have an easy way to sync these settings and have to rely on third party extensions. The primary scenarios we're looking to address are:
- Support syncing settings/extensions/keybindings/snippets automatically or manually
- Support for overwriting local/remote settings
- Resolving merge conflicts between local/remote settings
- Support for having machine only settings (OS specific)
- Support for removing extensions from your "account"
Related Issues
- Provide support to synchronize settings across machines Provide support to synchronize settings across machines #2743
- Syncing local and remote Syncing local and remote vscode-remote-release#196
- Allow to scope settings by platform Allow to scope settings by platform #5595
Current Experience
Users have to rely on third-party extensions (like Settings Sync) to have syncing across machines. For remote scenarios, users have to manually install extensions on those machines (see below).
Reacted by Andrii Dieiev, Connor Shea, Marius, Maxence Frenette, Borek Bernard, kanlukasz, Benas Svipas, Carlo Cardella, Andrii Maksymets, Marc-Andre Bourassa and 19 more
Reacted by Borek Bernard, Wang Zishi, Carlo Cardella, Victor Costan, Ilya Zayats, Alan Fregtman, Michiel Nuyts, Danilo Fuchs, ritchie and Aslan French
Reacted by Carlo Cardella, Michiel Nuyts, ritchie, Aslan French and James Baker
Reacted by Aslan French
Reacted by Aslan French

Activity
tjquillan commentedon Aug 11, 2019
This issue for OS specific settings would likely be important for a settings sync UX: #5595
maxencefrenette commentedon Aug 13, 2019
Here's a spot where Settings Sync is lacking: it doesn't sync remote extensions. It's also missing platform-specific settings AFAIK. Other than that, it has a decent UX, especially with the new Sign in with GitHub feature. It should be a good starting point for this UX exploration.
borekb commentedon Aug 13, 2019
"Sync pragmas" are also an essential feature for me because
window.zoomLevelis different on each of my computers and that specific setting "cannot" be synced. With Settings Sync, the syntax looks like this:{ // @sync-ignore "window.zoomLevel": "1", }Full reference here.
BTW, is this being worked on with Shan Khan (@shanalikhan), the author of Settings Sync? His extension is the de-facto standard in VSCode ecosystem and he probably heard about every possible feature request there might be 😄.
miguelsolorio commentedon Aug 13, 2019
Maxence Frenette (@maxencefrenette) Borek Bernard (@borekb) we have a line item that covers machine/OS only settings
borekb commentedon Aug 13, 2019
Ah, you're right, I missed that.
BTW, what I like about Settings Sync is that it uses a "dumb" server-side storage so I'm not locked into any particular "smart" backend. When you mention this:
I'd like that "sign in service" to be GitHub, not a hypothetical "VSCode Account" (which would be similar to how JetBrains IDEs sync their settings).
Gist is a beautifully simple backend for sync – I can see how my settings evolved over time, can decide whether it's public or private, etc.
It's exciting that VSCode is adding this natively!
rossipedia commentedon Aug 14, 2019
Fair enough...
errrr.... isn't that the point of 3rd party extensions, though? Why reinvent the wheel here? Unless there's some significant benefit to integrating this directly into Code, wouldn't it be better all around to work with the Settings Sync extension author to address its current limitations?
sandy081 commentedon Aug 14, 2019
Borek Bernard (@borekb) The sign in service can be any (Github, Azure). VS Code will not hardcode to a particular account. We are planing to provide an API for extensions to register backend providers for sign-in and user data. See #78966.
So, VS Code will control only what user data to sync and the corresponding UI. The complete backend for storing user data comes from extensions.
It means, the settings sync extension can still use github gist as backend but VS Code drives the UI.
sandy081 commentedon Aug 14, 2019
rossipedia (@rossipedia) Yes and No. Please see my above comment. User data synch still happens through third party extensions. VS Code does the synchronisation using user data provided by extensions. Since VS Code knows what to sync it is best to let VS Code makes this decision instead of extensions.
Yes we are looking to the settings synch extension from Shan Khan (@shanalikhan) as a reference and to make sure it can be adopted to new API without missing functionality.
borekb commentedon Aug 14, 2019
Awesome, that's the best way I could hope for. Thanks!
shanalikhan commentedon Aug 20, 2019
Okay, its great to see UX provided by VSCode itself and allow extensions to wrap their own system.
I would suggest you to provide some of the API alongwith the UX when we talk about "Settings Synch" in general.
I have few questions in general for some of which there are already seperate issues opened. I'm merging all of them here to allow us to see bigger picture.
Settings Sync needs to manually find the
Userpath for each of the code variant. Initially Settings Sync had to hard code the paths but now although its very much improved. Settings Sync still uses some techniques to find theUserfolder andExtensionfolder as written here I would suggest to allow authors to read theUserfolder directly by just an API.Extension Synch is not completely supported until
extension.allis updated after code restarts. I would suggest to either improve that or provide API to catch them. Reference : vscode.extensions Doesn't Update On Installing / Removing / Disabling Extensions without restarting #14444Currently Settings Sync cannot disable / enable the extensions due to the limitations from the API. I would request to provide API for that. Reference : How to enable / disable extension from API or commands #15466
These are the some improvement i see from the API side to allow Settings Sync extension to fully utilize its power and increase productivity.
Now talking about adding UX. I would like to see the following things in the UX
Settings Sync has these configuration of its own, i would like to see this a part of Code so extension authors wont have to manage this.
As suggested by Borek Bernard (@borekb) (Explore settings sync UX #78869 (comment)) "Sync Pragmas" are essential part of Settings Sync, i would suggest to provide UX to allow me to see which Settings needs to be ignored by Settings Sync.
Provide UX to allow users to include workspace settings in a part of Sync. Settings Sync supports it. Reference : here
At the end, how you guys will enforce the newly made API. I would suggest you to send PR to allow Settings Sync to integrate complely with the new UX. It would take time from my side to integrate the new UX.
I have recenly added new UX in Settings Sync that integrates the Github. This UI needs to be integrated with your UX to let Settings Sync only manage the external storage part and keep the permissions and configurations to Code UI.
These are the initial things that comes to my mind.
sandy081 commentedon Aug 22, 2019
Moving API discussion to #78966
miguelsolorio commentedon Sep 20, 2019
UX Update
Here's a quick update on our progress. Right now we're focusing our efforts on creating a simple MVP experience that will accomplish the basics of syncing extensions/setting, and resolving conflicts.
First time experience
This experience focuses on setting up the Sync feature, selecting what items to sync (Settings and Extensions), logging in with a Microsoft or GitHub account, and starting the sync experience.
Setup on secondary machine
This experience is exactly the same as the first, except that if you have additional extensions/settings on the second machine that aren't on the first one that is synced, it will merge them together.
Resolving conflicts
This is a scenario that (we hope) won't happen very often. We'll always attempt to merge your settings without user input. However, in the case that you change the same setting on both machines to different values (be it from going offline or other connection issues), then we will notify you of conflicts and allow you to decide which value to choose from using our git merge conflict UI.
borekb commentedon Sep 22, 2019
@misolori That looks awesome! Out of curiosity, are those gifs produced by some super-powered wireframe app, or is it real VSCode with some "sketchy theme"?
miguelsolorio commentedon Sep 23, 2019
Borek Bernard (@borekb) I use Figma to create all of my mockups and I have a wireframe library that I use to create these types mockups/prototypes.
borekb commentedon Sep 23, 2019
It's awesome that it can also do these little interactions. Thanks for sharing!
jcklpe commentedon Sep 23, 2019
Huge praise to Shan for his extensions but I'm also very glad to see this type of functionality finally being proposed to be brought into the main vscode project. It is badly needed.
Shans work is tireless. Even so it still messed up from time to time and I can get can wonky inexplicable results.
Please devs! Please bring this in natively to vscode by default!
miguelsolorio commentedon Sep 30, 2019
The ux exploration phase of this feature has been completed as posted in #78869 (comment). Development will continue and updates will be posted in the API Discussion issue #78966.