From dca8fc8758559d048fcd4f7b3d10c0a1f3299d2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=A2=A8?= Date: Fri, 5 Dec 2025 11:17:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E4=BB=8E=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E4=B8=AD=E7=82=B9=E5=87=BB=E6=8C=89=E9=92=AE=E5=BF=AB?= =?UTF-8?q?=E6=8D=B7=E8=B7=B3=E8=BD=AC=E8=87=B3=E8=AE=BE=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../show-convert-case-order-dialog.ts | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/core/variable-convert/show-convert-case-order-dialog.ts b/src/core/variable-convert/show-convert-case-order-dialog.ts index 98a4cb8..9d16aa3 100644 --- a/src/core/variable-convert/show-convert-case-order-dialog.ts +++ b/src/core/variable-convert/show-convert-case-order-dialog.ts @@ -115,5 +115,23 @@ export function showConvertCaseOrderDialog() { message += '- 重复和无效的格式配置可能会导致显示异常\n'; // 显示信息弹窗 - vscode.window.showInformationMessage('格式顺序配置信息', { modal: true, detail: message }); + vscode.window.showInformationMessage( + '格式顺序配置信息', + { modal: true, detail: message }, + // 弹窗按钮 + { title: '插件全部配置' }, + { title: '配置启用的命名方式' }, + { title: '配置转换顺序' }, + ).then(selection => { + if (selection) { + // 跳转到设置项 + if (selection.title === '插件全部配置') { + vscode.commands.executeCommand('workbench.action.openSettings', 'variable-conversion'); + } else if (selection.title === '配置启用的命名方式') { + vscode.commands.executeCommand('workbench.action.openSettings', 'variable-conversion.enabledFormats'); + } else if (selection.title === '配置转换顺序') { + vscode.commands.executeCommand('workbench.action.openSettings', 'variable-conversion.formatOrder'); + } + } + }); }