feat: add denyCommand handler for individual command deny listing

This commit is contained in:
hannesrudolph 2025-07-14 15:13:51 -06:00
parent 20363b4218
commit a0e8c24352
2 changed files with 3 additions and 4 deletions

View file

@ -842,9 +842,7 @@ export const webviewMessageHandler = async (
.update("deniedCommands", validCommands, vscode.ConfigurationTarget.Global)
// Show confirmation to the user
vscode.window.showInformationMessage(
t("common:info.command_denied", { pattern: message.pattern }),
)
vscode.window.showInformationMessage(t("common:info.command_denied", { pattern: message.pattern }))
// Update the webview state
await provider.postStateToWebview()

View file

@ -103,7 +103,8 @@
"image_saved": "Image saved to {{path}}",
"mode_exported": "Mode '{{mode}}' exported successfully",
"mode_imported": "Mode imported successfully",
"command_whitelisted": "Command pattern '{{pattern}}' has been added to the allowed commands list"
"command_whitelisted": "Command pattern '{{pattern}}' has been added to the allowed commands list",
"command_denied": "Command pattern '{{pattern}}' has been added to the denied commands list"
},
"answers": {
"yes": "Yes",