diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json
index 676292959..f017cd151 100644
--- a/extensions/vscode/package.json
+++ b/extensions/vscode/package.json
@@ -118,7 +118,8 @@
{
"command": "continue.toggleFullScreen",
"category": "Continue",
- "title": "Toggle Full Screen"
+ "title": "Toggle Full Screen",
+ "icon": "$(fullscreen)"
},
{
"command": "continue.shareSession",
@@ -129,6 +130,18 @@
"command": "continue.selectFilesAsContext",
"category": "Continue",
"title": "Continue: Select Files as Context"
+ },
+ {
+ "command": "continue.newSession",
+ "category": "Continue",
+ "title": "New Session",
+ "icon": "$(add)"
+ },
+ {
+ "command": "continue.viewHistory",
+ "category": "Continue",
+ "title": "View History",
+ "icon": "$(history)"
}
],
"keybindings": [
@@ -210,6 +223,30 @@
"command": "continue.selectFilesAsContext",
"group": "1_debug@1"
}
+ ],
+ "view/title": [
+ {
+ "command": "continue.newSession",
+ "group": "navigation@1",
+ "when": "view == continue.continueGUIView"
+ },
+ {
+ "command": "continue.toggleFullScreen",
+ "group": "navigation@1",
+ "when": "view == continue.continueGUIView"
+ },
+ {
+ "command": "continue.viewHistory",
+ "group": "navigation@1",
+ "when": "view == continue.continueGUIView"
+ }
+ ],
+ "editor/title": [
+ {
+ "command": "continue.toggleFullScreen",
+ "group": "navigation@1",
+ "when": "activeWebviewPanelId == continue.continueGUIView"
+ }
]
},
"viewsContainers": {
diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts
index daa42a6d5..7957912ef 100644
--- a/extensions/vscode/src/commands.ts
+++ b/extensions/vscode/src/commands.ts
@@ -187,6 +187,16 @@ const commandsMap: { [command: string]: (...args: any) => any } = {
"continue.sendToTerminal": (text: string) => {
ideProtocolClient.runCommand(text);
},
+ "continue.newSession": () => {
+ debugPanelWebview?.postMessage({
+ type: "newSession",
+ });
+ },
+ "continue.viewHistory": () => {
+ debugPanelWebview?.postMessage({
+ type: "viewHistory",
+ });
+ },
"continue.toggleFullScreen": () => {
// Check if full screen is already open by checking open tabs
const tabs = vscode.window.tabGroups.all.flatMap(
diff --git a/extensions/vscode/src/debugPanel.ts b/extensions/vscode/src/debugPanel.ts
index a51834b98..daa87e4bf 100644
--- a/extensions/vscode/src/debugPanel.ts
+++ b/extensions/vscode/src/debugPanel.ts
@@ -260,8 +260,12 @@ export function getSidebarContent(
)}
- ${edits ? `` : ''}
- ${page ? `` : ''}
+ ${
+ edits
+ ? ``
+ : ""
+ }
+ ${page ? `` : ""}