feat:搭建本地存储会话历史的框架
- 将会话历史存储在C:\Users\admin\.iccoder文件下 - 在里面又会创建多个文件夹进行存储
This commit is contained in:
@ -2,6 +2,7 @@ import * as vscode from "vscode";
|
||||
import { ICViewProvider } from "./views/ICViewProvider";
|
||||
import { showICHelperPanel } from "./panels/ICHelperPanel";
|
||||
import { VCDViewerPanel } from "./panels/VCDViewerPanel";
|
||||
import { ChatHistoryManager } from "./utils/chatHistoryManager";
|
||||
|
||||
export function activate(context: vscode.ExtensionContext) {
|
||||
console.log("🎉 IC Coder 插件已激活!");
|
||||
@ -50,6 +51,53 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
}
|
||||
);
|
||||
|
||||
// 注册命令:查看会话历史
|
||||
// TODO: 这些命令需要根据新的任务架构重新实现
|
||||
// 暂时注释掉,等待重新实现
|
||||
/*
|
||||
const viewHistoryCommand = vscode.commands.registerCommand(
|
||||
"ic-coder.viewHistory",
|
||||
() => {
|
||||
vscode.window.showInformationMessage("此功能正在重构中,敬请期待");
|
||||
}
|
||||
);
|
||||
|
||||
const newSessionCommand = vscode.commands.registerCommand(
|
||||
"ic-coder.newSession",
|
||||
() => {
|
||||
vscode.window.showInformationMessage("此功能正在重构中,敬请期待");
|
||||
}
|
||||
);
|
||||
|
||||
const exportSessionCommand = vscode.commands.registerCommand(
|
||||
"ic-coder.exportSession",
|
||||
() => {
|
||||
vscode.window.showInformationMessage("此功能正在重构中,敬请期待");
|
||||
}
|
||||
);
|
||||
|
||||
const deleteSessionCommand = vscode.commands.registerCommand(
|
||||
"ic-coder.deleteSession",
|
||||
() => {
|
||||
vscode.window.showInformationMessage("此功能正在重构中,敬请期待");
|
||||
}
|
||||
);
|
||||
|
||||
const clearHistoryCommand = vscode.commands.registerCommand(
|
||||
"ic-coder.clearHistory",
|
||||
() => {
|
||||
vscode.window.showInformationMessage("此功能正在重构中,敬请期待");
|
||||
}
|
||||
);
|
||||
|
||||
const searchSessionCommand = vscode.commands.registerCommand(
|
||||
"ic-coder.searchSession",
|
||||
() => {
|
||||
vscode.window.showInformationMessage("此功能正在重构中,敬请期待");
|
||||
}
|
||||
);
|
||||
*/
|
||||
|
||||
// 注册侧边栏视图
|
||||
const viewProvider = new ICViewProvider(context.extensionUri);
|
||||
const viewRegistration = vscode.window.registerWebviewViewProvider(
|
||||
@ -62,6 +110,13 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
openPanelCommand,
|
||||
openChatCommand,
|
||||
openVCDViewerCommand,
|
||||
// TODO: 等待重新实现这些命令
|
||||
// viewHistoryCommand,
|
||||
// newSessionCommand,
|
||||
// exportSessionCommand,
|
||||
// deleteSessionCommand,
|
||||
// clearHistoryCommand,
|
||||
// searchSessionCommand,
|
||||
viewRegistration
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user