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",