Skip to content

Explore settings sync UX #78869

Closed
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

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).

image

Activity

  1. added
    ux
    keybindings
    on Aug 10, 2019
  2. tjquillan commented on Aug 11, 2019

    @tjquillan

    This issue for OS specific settings would likely be important for a settings sync UX: #5595

  3. maxencefrenette commented on Aug 13, 2019

    @maxencefrenette

    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.

  4. borekb commented on Aug 13, 2019

    @borekb

    "Sync pragmas" are also an essential feature for me because window.zoomLevel is 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 😄.

  5. miguelsolorio commented on Aug 13, 2019

    @miguelsolorio
    ContributorAuthor

    Maxence Frenette (@maxencefrenette) Borek Bernard (@borekb) we have a line item that covers machine/OS only settings

  6. borekb commented on Aug 13, 2019

    @borekb

    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:

    This exploration will aim to support syncing you settings [...] across multiple machines (local and remote) using a sign in service (account).

    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!

  7. rossipedia commented on Aug 14, 2019

    @rossipedia

    The problem being addressed is that users don't have an easy way to sync these settings

    Fair enough...

    and have to rely on third party extensions.

    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?

  8. sandy081 commented on Aug 14, 2019

    @sandy081
    Member

    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.

  9. sandy081 commented on Aug 14, 2019

    @sandy081
    Member

    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.

  10. borekb commented on Aug 14, 2019

    @borekb

    It means, the settings sync extension can still use github gist as backend but VS Code drives the UI.

    Awesome, that's the best way I could hope for. Thanks!

  11. shanalikhan commented on Aug 20, 2019

    @shanalikhan

    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.

    1. Settings Sync needs to manually find the User path 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 the User folder and Extension folder as written here I would suggest to allow authors to read the User folder directly by just an API.

    2. Extension Synch is not completely supported until extension.all is 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 #14444

    3. Currently 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

    1. There should be configurations to allow extension to read the following:
      • Settings
      • Extensions
      • Keybindings
      • Alot more

    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.

    1. 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.

    2. 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.

  12. sandy081 commented on Aug 22, 2019

    @sandy081
    Member

    Moving API discussion to #78966

  13. miguelsolorio commented on Sep 20, 2019

    @miguelsolorio
    ContributorAuthor

    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.

    gif

    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.

    gif

    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.

    gif

  14. borekb commented on Sep 22, 2019

    @borekb

    @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"?

  15. miguelsolorio commented on Sep 23, 2019

    @miguelsolorio
    ContributorAuthor

    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.

  16. borekb commented on Sep 23, 2019

    @borekb

    It's awesome that it can also do these little interactions. Thanks for sharing!

  17. jcklpe commented on Sep 23, 2019

    @jcklpe

    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!

  18. miguelsolorio commented on Sep 30, 2019

    @miguelsolorio
    ContributorAuthor

    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.

  19. locked and limited conversation to collaborators on Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

keybindingsux

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions