From 1653d35b6a6357a35983855c73d7865e9a993f5a Mon Sep 17 00:00:00 2001 From: Patrick Zocli Date: Sun, 14 Jul 2024 13:41:29 +0100 Subject: [PATCH] feat: Add script to download and organize VSCode icons --- package.json | 24 ++++++++++++++++++++---- src/commands/surge.ts | 2 +- vsicon.sh | 7 +++++++ 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100755 vsicon.sh diff --git a/package.json b/package.json index ee2be78..5a98c7a 100644 --- a/package.json +++ b/package.json @@ -17,16 +17,16 @@ "command": "surge-deploy.deploy", "title": "Surge: Deploy", "icon": { - "light": "./resources/light/plus.svg", - "dark": "./resources/dark/plus.svg" + "light": "./resources/light/add.svg", + "dark": "./resources/dark/add.svg" } }, { "command": "surge-deploy.reload-list", "title": "Surge: Refresh", "icon": { - "light": "./resources/light/reload.svg", - "dark": "./resources/dark/reload.svg" + "light": "./resources/light/refresh.svg", + "dark": "./resources/dark/refresh.svg" } }, { @@ -36,6 +36,22 @@ { "command": "surge-deploy.hello", "title": "Surge: Hello" + }, + { + "command": "surge-deploy.rename", + "title": "Surge: Rename", + "icon": { + "light": "./resources/light/edit.svg", + "dark": "./resources/dark/edit.svg" + } + }, + { + "command": "surge-deploy.delete", + "title": "Surge: Delete", + "icon": { + "light": "./resources/light/remove.svg", + "dark": "./resources/dark/remove.svg" + } } ], "viewsContainers": { diff --git a/src/commands/surge.ts b/src/commands/surge.ts index c720495..36d8d81 100644 --- a/src/commands/surge.ts +++ b/src/commands/surge.ts @@ -33,7 +33,7 @@ export const deploySurgeCommand = commands.registerCommand('surge-deploy.deploy' await window.withProgress({ location: ProgressLocation.Window, - title: `Deploying "${projectName}" project on surge`, + title: `Deploying project on surge...`, cancellable: true }, (progress, token) => { token.onCancellationRequested(() => { diff --git a/vsicon.sh b/vsicon.sh new file mode 100755 index 0000000..c454bad --- /dev/null +++ b/vsicon.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +name=$1 +wget https://raw.githubusercontent.com/microsoft/vscode-icons/master/icons/light/$name.svg +mv $name.svg resources/light +wget https://raw.githubusercontent.com/microsoft/vscode-icons/master/icons/dark/$name.svg +mv $name.svg resources/dark