Only show the command when there's a selection

This commit is contained in:
nyanotech 2022-03-23 10:40:56 +00:00
parent b930c44040
commit 6ea38f3dac
Signed by: nyanotech
GPG Key ID: D2D0A9E8F160472B

View File

@ -20,7 +20,15 @@
"category": "Recombobulator", "category": "Recombobulator",
"title": "base64 encode" "title": "base64 encode"
} }
],
"menus": {
"commandPalette": [
{
"command": "recombobulator.base64",
"when": "editorHasSelection"
}
] ]
}
}, },
"scripts": { "scripts": {
"vscode:prepublish": "npm run package", "vscode:prepublish": "npm run package",