question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use gist name or description consistent across all extension

See original GitHub issue

🐛 Describe the bug
I am trying to use a different name of the gist and have set "askGistName": true in syncLocalSettings.json but I do not get any prompt asking for the name of the gist.

🌴 Visual Studio Code Version : 1.37.1 🌴 Code Settings Sync Version : 3.4.2 🌴 Standard or Insiders : Standard 🌴 Portable or Installed : Installed 🌴 OSS or Official Build : Official 🌴 Operating System : OSX 10.14.5 (18F132) 🌴 Occurs On: Upload 🌴 Proxy Enabled: N.A. 🌴 Gist Id: N.A.

📰 To Reproduce Steps to reproduce the behavior:

  1. Cmnd + p, then >
  2. Sync: Update/Upload settings

💪 Expected behavior As per the documentation, there should be a prompt asking for the Gist Name.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shanalikhancommented, Sep 9, 2019

This was rather confusing for a new user. Could you at least make Ask Gist Name and Gist Description consistent? Either use name or description, not both (not sure what official GitHub terminology is)

@slavdok alright, sounds good. I will make it consistent.

1reaction
slavdokcommented, Sep 3, 2019

@vikas027 I think I figured it out.

First, when you set Ask Gist Name to true, you also have to clear Gist ID. Then upload settings (and it will prompt for a new name)

Second, Gist Description and Gist Name are the same thing. If you want to “Save as” a pre-configured new name, remove Gist ID, fill Gist Description with your desired name and uncheck Ask Gist Name. OR if you want to “Save as” and prompt for a name, then remove Gist ID, and set Ask Gist Name to true (the Gist Description will be ignored in this case).

Third, once a gist is created, you cannot “rename” it through a tool, so changing Gist Description or setting/unsetting Ask Gist Name does absolutely nothing, unless you also clear the Gist ID (which creates a new gist as described above). You can rename on the GitHub side

Fourth. On the GitHub side, it looks like they always list your first file in the gist as the “link”, i.e. yourname / cloudSettings. Since Settings Sync uploads the first file titled “cloudSettings” you will always see that in the list of gits. Your customized Gist Description or the result of your prompt for Ask Gist Name is what’s shown under it

Lastly, when you want to load one of multiple previously saved gists, either manually change the Gist ID, or F1 > Sync: Reset Extension Settings, then click Login with Github, and you will see a window to pick form existing gist

@shanalikhan This was rather confusing for a new user. Could you at least make Ask Gist Name and Gist Description consistent? Either use name or description, not both (not sure what official GitHub terminology is)

Also, I don’t know if it’s possible to disable the form controls on that custom Sync Settings page, but if so, please don’t allow Ask Gist Name and Gist Description while Gist ID is filled in. Only enable these fields when Gist ID is clear. Ideally, Gist Description and Ask Gist Name should be mutually exclusive too, only one or the other selectable.

And thank you for the hard work, this extension is a life saver!

Read more comments on GitHub >

github_iconTop Results From Across the Web

GiST and GIN Indexes for Text Search | Tanzu Greenplum Docs
Creates a GiST (Generalized Search Tree)-based index. The column can be of tsvector or tsquery type. CREATE INDEX name ON table USING gin(column);....
Read more >
GistPad - Visual Studio Marketplace
GistPad. GistPad is a Visual Studio Code extension that allows you to edit GitHub Gists and repositories from the comfort of your favorite...
Read more >
Documentation: 15: 11.2. Index Types - PostgreSQL
PostgreSQL provides several index types: B-tree, Hash, GiST, SP-GiST, GIN, BRIN, and the extension bloom. Each index type uses a different algorithm that...
Read more >
Macros - Scala 3
The Phase Consistency Principle. A fundamental phase consistency principle (PCP) regulates accesses to free variables in quoted and spliced code: For any free ......
Read more >
Conventional Commits
The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found