DEV Community

Discussion on: Code Settings Sync Configurations

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.