remove view history message
This commit is contained in:
parent
e67be03722
commit
dbab356436
4 changed files with 3 additions and 19 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue