feat:新增高级特性的按钮

- 里面包含用户手册
- 用户反馈 点击之后弹窗显示微信二维码
This commit is contained in:
Roe-xin
2026-01-15 14:30:58 +08:00
parent 73a1510de4
commit 5339212de9
6 changed files with 483 additions and 4 deletions

View File

@ -131,13 +131,19 @@ export async function showICHelperPanel(
vscode.Uri.joinPath(context.extensionUri, "src", "assets", "model", "Max.png")
);
// 获取二维码图片URI
const qrCodeUri = panel.webview.asWebviewUri(
vscode.Uri.joinPath(context.extensionUri, "src", "assets", "QRCode", "wx.png")
);
// 设置HTML内容
panel.webview.html = getWebviewContent(
iconUri.toString(),
autoIconUri.toString(),
liteIconUri.toString(),
syIconUri.toString(),
maxIconUri.toString()
maxIconUri.toString(),
qrCodeUri.toString()
);
// 获取并发送用户信息到 webview
@ -344,6 +350,16 @@ export async function showICHelperPanel(
// 退出登录
vscode.commands.executeCommand("ic-coder.logout");
break;
case "openUserManual":
// 打开用户手册
vscode.env.openExternal(vscode.Uri.parse("https://www.iccoder.com"));
break;
case "openUserFeedback":
// 打开用户反馈二维码弹窗
panel.webview.postMessage({
command: "showFeedbackQRCode"
});
break;
// 处理计划操作(只做模式切换,响应已通过 submitAnswer 发送)
case "planAction":
if (message.action === "confirm") {