diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b9d33a..b12f59a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## v0.6.1 (11/19/2023) + +- Changed the default gist type to secret, by making the `+` icon in the tree create a new secret gist (as opposed to a public gist) +- Fixed an error when refreshing the gists tree + ## v0.6.0 (11/19/2023) - Added the `New Gist` context menu to tag groups in the tree, which allows quickly creating a gist with the selected tag diff --git a/package.json b/package.json index 7dc5a2e..4d920a4 100644 --- a/package.json +++ b/package.json @@ -318,15 +318,15 @@ }, { "command": "gistpad.newPublicGist", - "title": "New Gist", + "title": "New Public Gist", "category": "GistPad", - "icon": "$(add)" + "icon": "$(gist)" }, { "command": "gistpad.newSecretGist", "title": "New Secret Gist", "category": "GistPad", - "icon": "$(gist-secret)" + "icon": "$(add)" }, { "command": "gistpad.newGistFromTag", @@ -885,12 +885,12 @@ ], "view/title": [ { - "command": "gistpad.newPublicGist", + "command": "gistpad.newSecretGist", "when": "view =~ /^gistpad.gists(.explorer)?$/ && gistpad:state == SignedIn", "group": "navigation@1" }, { - "command": "gistpad.newSecretGist", + "command": "gistpad.newPublicGist", "when": "view =~ /^gistpad.gists(.explorer)?$/ && gistpad:state == SignedIn", "group": "navigation@2" }, @@ -942,22 +942,22 @@ ], "view/item/context": [ { - "command": "gistpad.newPublicGist", + "command": "gistpad.newSecretGist", "when": "viewItem == gists", "group": "inline@1" }, { - "command": "gistpad.newSecretGist", + "command": "gistpad.newPublicGist", "when": "viewItem == gists", "group": "inline@2" }, { - "command": "gistpad.newPublicGist", + "command": "gistpad.newSecretGist", "when": "viewItem == gists", "group": "new@1" }, { - "command": "gistpad.newSecretGist", + "command": "gistpad.newPublicGist", "when": "viewItem == gists", "group": "new@2" }, diff --git a/src/store/storage.ts b/src/store/storage.ts index 37fce40..19a0610 100644 --- a/src/store/storage.ts +++ b/src/store/storage.ts @@ -32,14 +32,14 @@ export async function initializeStorage(context: ExtensionContext) { followedUsersStorage = { get followedUsers() { let followedUsers = context.globalState.get(FOLLOW_KEY, []).sort(); - output.appendLine( + output?.appendLine( `Getting followed users from global state = ${followedUsers}`, output.messageType.Info ); return followedUsers; }, set followedUsers(followedUsers: string[]) { - output.appendLine( + output?.appendLine( `Setting followed users to ${followedUsers}`, output.messageType.Info );