-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
Update / Upload Settings creates a new gist even if gist id has been added to settings #261
Comments
I have tried yor steps its working for me. can you try to reset the settings |
I don't know why it matters whether the gist is public or secret, so I didn't include that. Why must it matter? When I reported this issue, the gists were secret, the default. I hadn't changed the access to public while I reproduced the issue. The only reason I made my gist public was so that you could examine it in case you suspected interference with some other extension or some other setting. I'll try to check it again with yet another machine and varying the public/secret settings. |
@CodeCharm Maybe you don't write correctly github token, the first time I mixed github token and github gist id. You can reset token in settings github, if you forgot it. |
Hi Dmitry, |
I can reproduce this issue under Ubuntu 16.04. |
Nevermind, it just happened one time 😕 |
Im still unable to reproduce it at my end. Is there any exception logged in developer console when it happens? |
Just following up: I dramatically reduced the number of times I needed to try to set up new machines about a month ago, so I haven't been able to attempt repro cases as much. I have set up new machines, and since I've been especially careful about doing a download on new machines before invoking the Upload/Sync command, it has been performing to spec and I have not seen any new gists getting created. (Not sure if this comment will re-open the issue. I don't want to re-open it; please re-close it if it does.) Thanks for your time looking into this! |
When you download the settings, and then git upload command, does it create new Gist on the new machines? (if yes, post console image) |
Not anymore that I've seen (that was the original bug report I filed, above). One way that people might get into trouble, though, which might be preventable: If the user does not do the initial download, but provides the GitHub token and then tries an upload, it will create a new Gist even if one already exists and is available via that token. Could that be prevented by scanning the available gists, looking for one named "cloudSettings" with a description of "Visual Studio Code Sync Settings Gist"? If you think it's possible, I might take a stab at making a contribution to the code. |
Well what we can do it like another way. When user add token and hit upload. There will be two cases. Similarly when user download the settings User wont be able to see fiat by its gist id or file name but with last updated gist date and gist description. I am very willing to accept a pull request if u could do it. Let me know Thanks |
I have created a new issue for this scenario to work on future release for this feature. |
Visual Studio Code Version : 1.10.2
Code Settings Sync Version : 2.6.1
Operating System : Windows 10 Pro (1607, build 14393)
Occurs On: Upload
Proxy Enabled: No
GIst Id: ad746d7c52666e787887b63902579241
I had very little trouble making my GitHub token; thanks for the good docs on that.
However, I've struggled with setting up new machines to use a Gist that I have created from other machines, especially if I am trying to make the new machines capable of updating the existing gist. If I only want to download the settings from the gist, I don't have any problems.
Here's the steps to repro:
settings.json
file, a setting forsync.gist
that contains the Gist ID for itself.Expected:
The first gist should be updated with the new settings for Machine 2.
What actually happens:
A new gist is created with Machine 2's settings, and the settings.json file is updated to use the new gist ID. Machine 1's gist is untouched.
The text was updated successfully, but these errors were encountered: