-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Prevent accidental upload #350
Comments
Yes you are right !
But if user have the latest settings online and older settings in local. It will show a message
It will enable the And Thanks for Providing the Scenarios ! |
Oh I completely forgot about that #316 issue :) Thank you so much for listening to feedback and improving the extension! |
@fgallardograzio thanks for the heads up, I'll post a comment there. |
Is there an option to override previous gists? I don't want to have loads of gists on github. |
@IssueHunt has funded $50.00 to this issue.
|
@arnohovhannisyan |
* Rename package.nls.pt.json to package.nls.pt-br.json This aligns the filename to the one needed by VSCode. * Fix issues on first install * Safe Upload * Add option in Other Options menu and update Readme * Fix requested changes package.nls.*.json ---- Reorder keys to be alphabetical sync.ts ---- Notify that the upload was cancelled github.service.ts ---- Update function name to IsGistNewer
v3.4.0 has been fixed with this fix. |
Great to hear! How is this fixed? |
If you have older settings in your computer comparing with updated Gist settings that were uploaded from other computer. It will not allow you to upload unless you download your settings first or select |
Sounds great, thanks! |
I have two computers with VSCode installed that I keep synchronized using this awesome extension. I have both
autoUpload
andautoDownload
disabled (personal preference) so have to remember to upload / download manually.If I'm not mistaken, download is safe: if I'm on a computer with newer settings (local only, not uploaded yet) and I invoke download, it will not overwrite my settings because
sync.lastDownload
equals what's in the Gist'scloudSettings
lastUpload
and silently finish (probably, I'm not 100% sure, there's a strict match instead of>=
).However, upload is not safe. Let's say both my machines are currently synchronized and I update settings on the first machine and upload. Now I come to the second machine and forget that I have to download first and I run upload straight away. This will upload my older settings from PC no. 2, losing changes done by PC no. 1 (well, I can get back the older settings from Gist but something bit troublesome just happened).
I'd propose making upload safe as well. For example, the extension could detect that my local settings are older than those on Gist (my local
lastDownload
is older than Gist'slastUpload
) and warn me.Also, if this is going to be implemented, I'd like to avoid repetitive uploads. Now, if I invoke upload 5 times, even though no settings actually changed, I will get 5 new revisions of the Gist. This is unnecessary, IMO.
IssueHunt Summary
shanalikhan has been rewarded.
Backers (Total: $50.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: