feat:添加文件路径标签显示和rules需求文档

This commit is contained in:
Roe-xin
2026-03-03 16:45:23 +08:00
parent 3458f6fe23
commit 35c63802b5
5 changed files with 279 additions and 2 deletions

View File

@ -758,6 +758,23 @@ export async function showICHelperPanel(
}
}
break;
// 打开文件
case "openFile":
{
let filePath = message.filePath;
if (filePath) {
// 如果是相对路径,转换为绝对路径
if (!require("path").isAbsolute(filePath)) {
const workspaceFolder = vscode.workspace.workspaceFolders?.[0];
if (workspaceFolder) {
filePath = require("path").join(workspaceFolder.uri.fsPath, filePath);
}
}
const uri = vscode.Uri.file(filePath);
vscode.window.showTextDocument(uri);
}
}
break;
// 新增:检查工作区状态
case "checkWorkspace":
const hasWorkspace = !!(