From 3a9795060a59c7fc57293a08f2373ce161bd5faa Mon Sep 17 00:00:00 2001 From: Alex Weininger Date: Thu, 29 Apr 2021 22:29:59 -0700 Subject: [PATCH] Refresh storage view (#1) --- package-lock.json | 1 + package.json | 14 ++++++++++++-- src/commands/registerCommands.ts | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index c84b314..42449c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,6 +6,7 @@ "packages": { "": { "version": "0.0.1", + "license": "SEE LICENSE IN LICENSE.md", "dependencies": { "dayjs": "^1.10.4", "fs-extra": "^9.1.0", diff --git a/package.json b/package.json index 00e17a5..43d281e 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ }, "homepage": "https://github.com/streamlux/vscode-appwrite", "bugs": { - "url": "https://github.com/streamlux/vscode-appwrite/issues", - "email": "engineering@streamlux.com" + "url": "https://github.com/streamlux/vscode-appwrite/issues", + "email": "engineering@streamlux.com" }, "license": "SEE LICENSE IN LICENSE.md", "activationEvents": [ @@ -159,6 +159,11 @@ "command": "vscode-appwrite.openHealthDocumentation", "title": "Open health documentation", "icon": "$(book)" + }, + { + "command": "vscode-appwrite.refreshStorage", + "title": "Refresh storage", + "icon": "$(refresh)" } ], "views": { @@ -232,6 +237,11 @@ "command": "vscode-appwrite.openHealthDocumentation", "when": "view == Health", "group": "navigation" + }, + { + "command": "vscode-appwrite.refreshStorage", + "when": "view == Storage", + "group": "navigation" } ], "view/item/context": [ diff --git a/src/commands/registerCommands.ts b/src/commands/registerCommands.ts index fd78dc1..b51517d 100644 --- a/src/commands/registerCommands.ts +++ b/src/commands/registerCommands.ts @@ -70,4 +70,5 @@ export function registerCommands(context: ExtensionContext): void { registerCommand("refreshHealth", () => {}, 'health'); registerCommand("openHealthDocumentation", () => openDocumentation('health')); registerCommand("editPermission", editPermission, 'database'); + registerCommand("refreshStorage", () => {}, 'storage'); }