-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
Idea/Suggestion: Adds support to sync custom files #258
Comments
Please give a proper scenario for your case along with files names and their path |
Sure, lets consider a bunch of linters typically installed in VSCode through extensions: ESLint, StyleLint and HTMLHint for example, and also the widely used Beautify extension. All of them are customizable via configuration files:
They could be located anywhere actually, cause linters will find for them recursively upwards in the folder tree. In my case, in order to keep common settings for all my project, I have them saved in Maybe paths should be stored in a new file (e.g.: customFileMapping) and also uploaded to Gist. This file will contain the different paths for each file in each machine. This way, machines can resolve where to download each one. The files provided in this scenario are just examples. The idea would be to allow whatever file (maybe you can apply restrictions if you desire, only text files or light files) in whatever path. |
It would also be nice to be able to save launch configurations.
Mote info there: |
There would be something like When users upload the files it will upload the files from the specific path and upon download it will replace those files in their path. |
I think there's some difference to note betweetn vscode files (such as tasks.json, that is generated by the editor whenever you save a task) and custom per project/per language files such as .eslintrc. Editor files can be saved by default if present, custom files would need a list provided by the user as ti which files they want to save. |
As a workaround for launch.json VSCode also supports storing launch configurations in it's preferences under "launch" key: "launch": {
"configurations": [ { "type": "node", ... } ]
}
|
I'd use this to sync my |
It should work like:
Read those paths and upload and while downloading place those files in the path specified |
@BoostIO funded this issue with $60. Visit this issue on Issuehunt |
@shanalikhan I'd like to contribute with this one. This extension is a must have for me since I have to use newly installed machines frequently (linux and windows). I use a lot of dot files configs. What do you think? Please tell me your ideas and I will start to work on this as soon as I can |
@b1tdust
There is already issue opened #403 but code doesnt allow extensions to register commands CLI. What you we do for to add something like this.
When user uploads Settings Sync needs to upload file in path
Once it is done, we can have new command in Advance Settings of Settings Sync |
@shanalikhan I meant the command pallet (ctrl + shift + p in linux). Something similar to I will be working on this this weekend (tough week at work) |
@tkrtmy has started working. Visit this issue on Issuehunt |
@tkrtmy has submitted output. Visit this issue on Issuehunt |
As @tkrtmy has send the initial PR with further work required. @b1tdust |
@shanalikhan I fixed this issue. What should I do to get the bounty at issuehunt..? |
i will transfer in this week. |
v3.2 is released with this feature. Let me know if there is any problem |
@shanalikhan has rewarded. Visit this issue on Issuehunt |
Sorry to jump on a closed thread, but how is this supposed to work exactly? I have added a couple of custom files on one machine, I see the relevant lines added to syncLocalSettings.json and the files are uploaded to my private Gist, but then when I sync/download on a second machine syncLocalSettings.json does not get updated therefore the second machine does not know to download the two custom files (I don't see them created in the destination folder, even if the folder exists) |
@carlocardella |
PUBLIC WIKI : https://github.com/shanalikhan/code-settings-sync/wiki/Custom-Sync Feel free to improve this page where required. |
Thanks, I figured that after a few tests but my initial guess (admittedly without fully reading the new docs) was that since the extension already synchronizes a number of settings (and does an excellent job at it, it saved me a few times already) and seeing the custom files are uploaded to the same Gist used for other settings, downloading on a new machine would have downloaded the custom files as well. |
I clean-installed VSCode, of course syncLocalSettings.json got deleted. Since that file was missing , all paths of my custom files were gone. Then I thought it would be a good idea to sync syncLocalSettings.json itself as customFiles. |
Interesting idea, thanks for the suggestion. "lastUpload": "2018-10-25T13:23:20.523Z",
"lastDownload": "2018-10-24T14:53:48.190Z", |
It would be a great idea if we can not only sync VS Code related files, but also custom files provided by the user via file path. This will be really useful specially for linters configuration files.
Right now you have a feature called Customized Sync but is intended just to remove files from syncing right? I propose the other way round, adding custom files to be sync, so that we can deploy them in any other machine. In order to be useful, user should have to indicate where to download this custom files in each machine.
The text was updated successfully, but these errors were encountered: