remove view history message

This commit is contained in:
Dallin Romney 2025-01-28 14:28:15 -08:00
parent e67be03722
commit dbab356436
4 changed files with 3 additions and 19 deletions

View file

@ -79,10 +79,6 @@ export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & {
navigateTo: [{ path: string; toggle?: boolean }, void];
addModel: [undefined, void];
/**
* @deprecated Use navigateTo with a path instead.
*/
viewHistory: [undefined, void];
focusContinueSessionId: [{ sessionId: string | undefined }, void];
newSession: [undefined, void];
setTheme: [{ theme: any }, void];

View file

@ -113,7 +113,8 @@ class NewContinueSessionAction : AnAction() {
class ViewHistoryAction : AnAction() {
override fun actionPerformed(e: AnActionEvent) {
val continuePluginService = getContinuePluginService(e.project) ?: return
continuePluginService.sendToWebview("viewHistory", null)
val params = mapOf("path" to "/history", "toggle" to true)
continuePluginService.sendToWebview("navigateTo", params)
}
}

View file

@ -708,7 +708,7 @@ const getCommandsMap: (
sidebar.webviewProtocol?.request("newSession", undefined);
},
"continue.viewHistory": () => {
sidebar.webviewProtocol?.request("viewHistory", undefined);
vscode.commands.executeCommand("continue.navigateTo", "/history", true);
},
"continue.focusContinueSessionId": async (
sessionId: string | undefined,

View file

@ -122,19 +122,6 @@ const Layout = () => {
[navigate],
);
useWebviewListener(
"viewHistory",
async () => {
// Toggle the history page / main page
if (location.pathname === "/history") {
navigate("/");
} else {
navigate("/history");
}
},
[location, navigate],
);
useWebviewListener(
"navigateTo",
async (data) => {