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

Add Support for Settings Object and Arrays in Customizable Sync #292

Closed
rfgamaral opened this issue Apr 11, 2017 · 7 comments
Closed

Add Support for Settings Object and Arrays in Customizable Sync #292

rfgamaral opened this issue Apr 11, 2017 · 7 comments

Comments

@rfgamaral
Copy link

I've read the documentation but I can't seem to understand how to do this...

There's this setting that I need to have the following settings:

Home:

"vscode_custom_css.imports": [
    "file:///C:/Users/HomeUsername/.vscode/ui-theme.css"
]

Work:

"vscode_custom_css.imports": [
    "file:///C:/Users/WorkUsername/.vscode/ui-theme.css"
]

Is this possible with the current version (2.6.2) of this extension?

@shanalikhan
Copy link
Owner

For now it only supports the text values of settings file, i will add support for arrays and object.
http://shanalikhan.github.io/2017/02/19/Option-to-ignore-settings-folders-code-settings-sync.html

@shanalikhan shanalikhan changed the title How can I have 2 different settings between home/work computers? Add Support for Settings Object and Arrays in Customizable Sync Apr 11, 2017
@rfgamaral
Copy link
Author

Still, even if it was just a text value, how can I have 2 different values for each computer? From the docs, I can't understand the configuration needed to make that work.

@shanalikhan
Copy link
Owner

In this syncLocalSettings.json
in One computer setting set as

"replaceCodeSettings": 
    {
        "http.proxy" :"ABC",
     }

in second computer setting set as

"replaceCodeSettings": 
    {
        "http.proxy" :"DEF",
     }

When you download the setting, the respective value will be replaced in that setting.

@rfgamaral
Copy link
Author

Great. Now I just have to wait for object/array support :)

@shanalikhan shanalikhan added this to the Backlog milestone Apr 19, 2017
@shanalikhan shanalikhan modified the milestones: v2.9, Backlog May 4, 2017
@Jasius
Copy link

Jasius commented Nov 7, 2017

"replaceCodeSettings":

Couldn't get it to work on my machines.

@shanalikhan
Copy link
Owner

shanalikhan commented Sep 4, 2018

This feature will be removed in the future updates.
Settings Sync will have new way for customizing #555 configurations.

You can comment over there, and improve the upcoming feature by discussion.

@shanalikhan
Copy link
Owner

Duplicate of #555

@shanalikhan shanalikhan marked this as a duplicate of #555 Sep 4, 2018
@shanalikhan shanalikhan removed this from the Backlog milestone Sep 4, 2018
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