DEV Community

Code Settings Sync Configurations

Shan Khan on July 31, 2016

There are two types of configurations for Settings Sync in terms of their scope. Gist Setting Global Settings Setting Sync Global Settings is t...
Collapse
 
sarafian profile image
Alex Sarafian

I want to bootstrap an environment. So I've figured where and how to create the necessary configuration files with the gist and token and I want afterwards to invoke the download of the settings which you would normally do from the command pallete.

Something like this

code aparameter extensionname command
Enter fullscreen mode Exit fullscreen mode

e.g.

code shan.code-settings-sync extension.downloadSettings
Enter fullscreen mode Exit fullscreen mode
Collapse
 
mosthated profile image
MostHated • Edited

I have been looking for quite some time for a solid way to do exactly this. I do have it pretty close, though. It doesn't run headless, but it is fully automated. I just finished it up about an hour ago, and was going to make a small writeup on here about it.

Collapse
 
sarafian profile image
Alex Sarafian

VSCode support this natively so I would say that the entire post and comments as an extention are obsolete

Thread Thread
 
mosthated profile image
MostHated

Do you happen to have an example or a link to info on it? I have looked everywhere and have not seen a way to externally/headlessly call an extensions methods from outside of the VSCode editor.

Thread Thread
 
sarafian profile image
Alex Sarafian

Oh that. Yes I would like that as well very much.

I got probably confused and thought you were also interested for the extension and I said that vscode does this natively.

Thread Thread
 
mosthated profile image
MostHated

Ah yes, I see what you meant. Though, I can't say I fully agree. While it is nice that the editor does have some sync functionality built-in, it is not as configurable and customizable as this.

I tried using the built-in version but quickly found myself coming back to this one due to the nice platform-specific sync options, inclusions, exclusions, and things of that nature, as my desktop is Linux but I have Windows VM's and my work machines are Windows, etc. I just ended up frustrated more than anything else with the built in sync.

Thread Thread
 
sarafian profile image
Alex Sarafian

Oh. Didn't get that advanced.

Collapse
 
davidhartman00 profile image
David Hartman

One extensions needs an absolute file path in its settings.json configuration. The issue is that the path /Users/[Username_For_First_Mac]/files/workspace does not match up with the path /Users/[Username_For_Second_Mac]/files/workspace.

Is there a way to have Settings Sync ignore just this one setting to this extension?

Collapse
 
rogerlais profile image
Rogerlais Andrade e Silva

Hi Friends!

Specially to @shanalikhan
Great job. I use to Linux platform to swing between dev environments.
Now, I notice a urgent need.
Include
"ignoreUploadFolders": [
"workspaceStorage",
"History"
]
As default config, specially for Windows machines(syncLocalSettings.json)

Cheers!

Collapse
 
tennox profile image
Manuel

I'd love to know where this file is on Linux? "User" folder is for OSX, right?

Collapse
 
tennox profile image
Manuel

For anyone searching:
/home/XYZ/.config/VSCodium/User/syncLocalSettings.json

Collapse
 
cesarcarmona profile image
César Antonio Martínez Carmona

Hello, i have some files like History|-4a9687d|QbX4.json
how can i ignore them so they don't update
Thanks