From 6ea38f3dac070bc867ffa8c847ff68d0da3578b5 Mon Sep 17 00:00:00 2001 From: nyanotech Date: Wed, 23 Mar 2022 10:40:56 +0000 Subject: [PATCH] Only show the command when there's a selection --- package.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 502ef20..2f6e19c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,15 @@ "category": "Recombobulator", "title": "base64 encode" } - ] + ], + "menus": { + "commandPalette": [ + { + "command": "recombobulator.base64", + "when": "editorHasSelection" + } + ] + } }, "scripts": { "vscode:prepublish": "npm run package",