Skip to content
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

Open Show "Share ID" Message when new Public Gist is created #977

Closed
inwardmovement opened this issue Jul 22, 2019 · 14 comments
Closed

Open Show "Share ID" Message when new Public Gist is created #977

inwardmovement opened this issue Jul 22, 2019 · 14 comments

Comments

@inwardmovement
Copy link

inwardmovement commented Jul 22, 2019

Every time I open VSCode I have this notification:

Sync: Share the Id with other extension users to share the settings.

How can I get rid of it permanently?


🌴 Visual Studio Code Version : 1.36.1
🌴 Code Settings Sync Version : 3.4.1
🌴 Standard or Insiders : Standard
🌴 Portable or Installed : Installed
🌴 OSS or Official Build : Official Build
🌴 Operating System : Windows 10
🌴 Occurs On: "Sync uploaded successfully" (each sync)
🌴 Proxy Enabled: yes (I guess it's default VSC value, I didn't change anything)
🌴 Gist Id: 1b8b7717469c2648bacb57a1498dd84e

📰 To Reproduce
Steps to reproduce the behavior:
Modify a setting and upload settings

💪 Expected behavior
No notification at each sync

📺 Console Error Log

image

📺 Additional context
gist

@shanalikhan
Copy link
Owner

Can you post your Settings Sync global settings.

https://github.com/shanalikhan/code-settings-sync#global-settings

@inwardmovement
Copy link
Author

inwardmovement commented Jul 22, 2019

Here they are:

{
    "ignoreUploadFiles": [
        "state.vscdb",
        "state.vscdb.backup",
        "syncLocalSettings.json",
        ".DS_Store",
        "sync.lock",
        "projects.json",
        "projects_cache_vscode.json",
        "projects_cache_git.json",
        "projects_cache_svn.json",
        "gpm_projects.json",
        "gpm-recentItems.json",
        "state.*"
    ],
    "ignoreUploadFolders": [
        "workspaceStorage"
    ],
    "ignoreExtensions": [],
    "gistDescription": "Visual Studio Code Settings Sync Gist",
    "version": 340,
    "token": "(anonymized)",
    "downloadPublicGist": false,
    "supportedFileExtensions": [
        "json",
        "code-snippets"
    ],
    "openTokenLink": true,
    "disableUpdateMessage": false,
    "lastUpload": "2019-06-27T09:13:31.267Z",
    "lastDownload": "2019-07-22T08:50:55.815Z",
    "githubEnterpriseUrl": null,
    "askGistName": false,
    "customFiles": {
        "projects.json": "C:\\Users\\arkay\\AppData\\Roaming\\Code\\User\\globalStorage\\alefragnani.project-manager\\projects.json",
        ".gitconfig": "C:\\Users\\arkay\\.gitconfig",
        "Greenshot.ini": "C:\\Users\\arkay\\AppData\\Roaming\\Greenshot\\Greenshot.ini",
        "default.svg": "C:\\Users\\arkay\\AppData\\Roaming\\Inkscape\\templates\\default.svg",
        ".editorconfig": "C:\\Users\\arkay\\Documents\\config\\.editorconfig",
        "autoload.bat": "C:\\Users\\arkay\\Documents\\config\\autoload.bat",
        "info.txt": "C:\\Users\\arkay\\Documents\\config\\info.txt",
        "remove-safely-icon.bat": "C:\\Users\\arkay\\Documents\\config\\remove-safely-icon.bat",
        "macros.ahk": "C:\\Users\\arkay\\Documents\\config\\macros.ahk",
        "run.ahk": "C:\\Users\\arkay\\Documents\\config\\run.ahk",
        "text.ahk": "C:\\Users\\arkay\\Documents\\config\\text.ahk"
    },
    "hostName": null,
    "universalKeybindings": false,
    "autoUploadDelay": 20
}

@inwardmovement
Copy link
Author

Fixed in 3.4.1, thanks!

@inwardmovement
Copy link
Author

The notification showed again, sorry.

@shanalikhan
Copy link
Owner

alright, pls post the gist ID

@inwardmovement
Copy link
Author

1b8b7717469c2648bacb57a1498dd84e

@shanalikhan
Copy link
Owner

Can you post the details with the proper issue template so I can see the reproducing steps , happeing on upload / download etc. I have updated your main post so you can fill it up.

@inwardmovement
Copy link
Author

Ok thanks, done

@inwardmovement
Copy link
Author

inwardmovement commented Aug 9, 2019

Any news on this?
I think we should have a "Do not show again" option in the "gear" icon menu of the notification, like other notifications in VSCode.

image

@shanalikhan
Copy link
Owner

I didn't find time to fix this issue. Hopefully, it will be fixed in upcoming releases. :)

@shanalikhan shanalikhan added this to the v3.4.2 milestone Aug 19, 2019
@shanalikhan shanalikhan changed the title Get rid of "Share the Id" notification at every startup Open Show "Share ID" Message when new Public Gist is created Aug 19, 2019
shanalikhan added a commit that referenced this issue Aug 19, 2019
@shanalikhan
Copy link
Owner

It is fixed and released in new version.

shanalikhan added a commit that referenced this issue Aug 22, 2019
* Fix korean

* Fix: Ambiguous Expression and Korean naturally

* Missing keys

* Change `Sync :` to `Sync:`

* dev.to post updated

* #989

* Update package.nls.ko.json

fixing some wrong translate.

* Update ko-lang

Although translated, it some case may not be accurate.

* Fix GitHub spelling

* chore(package): update @types/chai to version 4.2.0

* Update french translation file

* Correcting the german translation

Checking the translation based on the package.nls.json file
Correcting the grammar for the german translation

* Correcting typos

Correcting spelling mistakes and typos

* Correcting spelling mistakes

Correcting more spelling mistakes

* #974

* #977
#989

* #1003 (#1012)

Also fix errors with settings containing backslashes.

* #983

* #1008
@pcdevil
Copy link

pcdevil commented Aug 23, 2019

Hello,

Since the new release I see this message (but previously I wasn't). I see the checks on this changed in the last release:

Previously the condition looked at the localConfig.publicGist variable (see L407) but now just for optArgument.
But the way as the optArgument becomes true is different (in terms of this check): if the incoming variable is trueish, the message will be showned, meanwhile previously it not just checked for emptiness, it checked for it's value too (see L87-88).

Since I don't see the calling signature is changed (as of the extension.ts L19-21) I would assume this is not how it should work?

I think reverting the modification in the sync.ts L407 would solve the issue, or a direct check on optArgument:

-          if (optArgument) {
+          if (optArgument === "publicGIST") {

What is your thoughts on this @shanalikhan?

@shanalikhan
Copy link
Owner

yes are you right. I will place the check on optArgument value too.

localConfig.publicGist can remain to true forever and user were seeing this message on every update. Now notification needs to be only appear when user creates new public gist. ( not on every upload on public gist, afterwards)

@pcdevil
Copy link

pcdevil commented Aug 23, 2019

Ohh I see! I missed that part of the code, sorry :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants