feat: 添加用户手册功能

- 新增用户手册 Markdown 文档及配套截图
   - 新增打开用户手册命令
   - 在侧边栏和主面板中集成用户手册入口
   - 优化用户手册打开方式,支持 Markdown 预览
This commit is contained in:
Roe-xin
2026-03-10 16:29:37 +08:00
parent 840436eb36
commit 77b54aebf0
15 changed files with 276 additions and 1 deletions

View File

@ -181,6 +181,15 @@ export async function activate(context: vscode.ExtensionContext) {
}
);
// 注册命令:打开用户手册
const openUserManualCommand = vscode.commands.registerCommand(
"ic-coder.openUserManual",
async () => {
const manualPath = vscode.Uri.joinPath(context.extensionUri, "media", "USER_MANUAL.md");
await vscode.commands.executeCommand("markdown.showPreview", manualPath);
}
);
// 注册命令:用户登录
const loginCommand = vscode.commands.registerCommand(
"ic-coder.login",
@ -425,6 +434,7 @@ export async function activate(context: vscode.ExtensionContext) {
openChatCommand,
openVCDViewerCommand,
openVCDViewerInBrowserCommand,
openUserManualCommand,
loginCommand,
logoutCommand,
changeInvitationCodeCommand,