From a0e8c243524f87c8191acc788f66511046bf3b35 Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Mon, 14 Jul 2025 15:13:51 -0600 Subject: [PATCH] feat: add denyCommand handler for individual command deny listing --- src/core/webview/webviewMessageHandler.ts | 4 +--- src/i18n/locales/en/common.json | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/webview/webviewMessageHandler.ts b/src/core/webview/webviewMessageHandler.ts index 11de112502..e3c9508f01 100644 --- a/src/core/webview/webviewMessageHandler.ts +++ b/src/core/webview/webviewMessageHandler.ts @@ -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() diff --git a/src/i18n/locales/en/common.json b/src/i18n/locales/en/common.json index 1764ef83ee..5d45e98e70 100644 --- a/src/i18n/locales/en/common.json +++ b/src/i18n/locales/en/common.json @@ -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",