From f161c7d5811abea7f6ce39c3d03b40d8c6168f1c Mon Sep 17 00:00:00 2001 From: Isaac Newton Date: Wed, 30 Apr 2025 15:30:13 +0700 Subject: [PATCH 1/5] feat: Adjust view header buttons for overflow menu --- package.json | 312 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 312 insertions(+) diff --git a/package.json b/package.json index 61f1f6cdaf..c65847b3bc 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,320 @@ "name": "roo-code", "packageManager": "pnpm@10.8.1", "engines": { + "vscode": "^1.84.0", "node": "20.19.2" }, + "author": { + "name": "Roo Code" + }, + "repository": { + "type": "git", + "url": "https://github.com/RooVetGit/Roo-Code" + }, + "homepage": "https://github.com/RooVetGit/Roo-Code", + "categories": [ + "AI", + "Chat", + "Programming Languages", + "Education", + "Snippets", + "Testing" + ], + "keywords": [ + "cline", + "claude", + "dev", + "mcp", + "openrouter", + "coding", + "agent", + "autonomous", + "chatgpt", + "sonnet", + "ai", + "llama", + "roo code", + "roocode" + ], + "activationEvents": [ + "onLanguage", + "onStartupFinished" + ], + "main": "./dist/extension.js", + "contributes": { + "submenus": [ + { + "id": "roo-code.contextMenu", + "label": "%views.contextMenu.label%" + }, + { + "id": "roo-code.terminalMenu", + "label": "%views.terminalMenu.label%" + } + ], + "viewsContainers": { + "activitybar": [ + { + "id": "roo-cline-ActivityBar", + "title": "%views.activitybar.title%", + "icon": "assets/icons/icon.svg" + } + ] + }, + "views": { + "roo-cline-ActivityBar": [ + { + "type": "webview", + "id": "roo-cline.SidebarProvider", + "name": "" + } + ] + }, + "commands": [ + { + "command": "roo-cline.plusButtonClicked", + "title": "%command.newTask.title%", + "icon": "$(add)" + }, + { + "command": "roo-cline.mcpButtonClicked", + "title": "%command.mcpServers.title%", + "icon": "$(server)" + }, + { + "command": "roo-cline.promptsButtonClicked", + "title": "%command.prompts.title%", + "icon": "$(notebook)" + }, + { + "command": "roo-cline.historyButtonClicked", + "title": "%command.history.title%", + "icon": "$(history)" + }, + { + "command": "roo-cline.popoutButtonClicked", + "title": "%command.openInEditor.title%", + "icon": "$(link-external)" + }, + { + "command": "roo-cline.settingsButtonClicked", + "title": "%command.settings.title%", + "icon": "$(settings-gear)" + }, + { + "command": "roo-cline.helpButtonClicked", + "title": "%command.documentation.title%", + "icon": "$(question)" + }, + { + "command": "roo-cline.openInNewTab", + "title": "%command.openInNewTab.title%", + "category": "%configuration.title%" + }, + { + "command": "roo-cline.explainCode", + "title": "%command.explainCode.title%", + "category": "%configuration.title%" + }, + { + "command": "roo-cline.fixCode", + "title": "%command.fixCode.title%", + "category": "%configuration.title%" + }, + { + "command": "roo-cline.improveCode", + "title": "%command.improveCode.title%", + "category": "%configuration.title%" + }, + { + "command": "roo-cline.addToContext", + "title": "%command.addToContext.title%", + "category": "%configuration.title%" + }, + { + "command": "roo-cline.newTask", + "title": "%command.newTask.title%", + "category": "%configuration.title%" + }, + { + "command": "roo-cline.terminalAddToContext", + "title": "%command.terminal.addToContext.title%", + "category": "Terminal" + }, + { + "command": "roo-cline.terminalFixCommand", + "title": "%command.terminal.fixCommand.title%", + "category": "Terminal" + }, + { + "command": "roo-cline.terminalExplainCommand", + "title": "%command.terminal.explainCommand.title%", + "category": "Terminal" + }, + { + "command": "roo-cline.setCustomStoragePath", + "title": "%command.setCustomStoragePath.title%", + "category": "%configuration.title%" + }, + { + "command": "roo-cline.focusInput", + "title": "%command.focusInput.title%", + "category": "%configuration.title%" + }, + { + "command": "roo.acceptInput", + "title": "%command.acceptInput.title%", + "category": "%configuration.title%" + } + ], + "menus": { + "editor/context": [ + { + "submenu": "roo-code.contextMenu", + "group": "navigation" + } + ], + "roo-code.contextMenu": [ + { + "command": "roo-cline.addToContext", + "group": "1_actions@1" + }, + { + "command": "roo-cline.explainCode", + "group": "1_actions@2" + }, + { + "command": "roo-cline.improveCode", + "group": "1_actions@3" + } + ], + "terminal/context": [ + { + "submenu": "roo-code.terminalMenu", + "group": "navigation" + } + ], + "roo-code.terminalMenu": [ + { + "command": "roo-cline.terminalAddToContext", + "group": "1_actions@1" + }, + { + "command": "roo-cline.terminalFixCommand", + "group": "1_actions@2" + }, + { + "command": "roo-cline.terminalExplainCommand", + "group": "1_actions@3" + } + ], + "view/title": [ + { + "command": "roo-cline.plusButtonClicked", + "group": "navigation@1", + "when": "view == roo-cline.SidebarProvider" + }, + { + "command": "roo-cline.promptsButtonClicked", + "group": "navigation@2", + "when": "view == roo-cline.SidebarProvider" + }, + { + "command": "roo-cline.mcpButtonClicked", + "when": "view == roo-cline.SidebarProvider" + }, + { + "command": "roo-cline.historyButtonClicked", + "when": "view == roo-cline.SidebarProvider" + }, + { + "command": "roo-cline.popoutButtonClicked", + "when": "view == roo-cline.SidebarProvider" + }, + { + "command": "roo-cline.settingsButtonClicked", + "group": "navigation@3", + "when": "view == roo-cline.SidebarProvider" + }, + { + "command": "roo-cline.helpButtonClicked", + "when": "view == roo-cline.SidebarProvider" + } + ], + "editor/title": [ + { + "command": "roo-cline.plusButtonClicked", + "group": "navigation@1", + "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" + }, + { + "command": "roo-cline.promptsButtonClicked", + "group": "navigation@2", + "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" + }, + { + "command": "roo-cline.mcpButtonClicked", + "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" + }, + { + "command": "roo-cline.historyButtonClicked", + "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" + }, + { + "command": "roo-cline.popoutButtonClicked", + "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" + }, + { + "command": "roo-cline.settingsButtonClicked", + "group": "navigation@3", + "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" + }, + { + "command": "roo-cline.helpButtonClicked", + "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" + } + ] + }, + "configuration": { + "title": "%configuration.title%", + "properties": { + "roo-cline.allowedCommands": { + "type": "array", + "items": { + "type": "string" + }, + "default": [ + "npm test", + "npm install", + "tsc", + "git log", + "git diff", + "git show" + ], + "description": "%commands.allowedCommands.description%" + }, + "roo-cline.vsCodeLmModelSelector": { + "type": "object", + "properties": { + "vendor": { + "type": "string", + "description": "%settings.vsCodeLmModelSelector.vendor.description%" + }, + "family": { + "type": "string", + "description": "%settings.vsCodeLmModelSelector.family.description%" + } + }, + "description": "%settings.vsCodeLmModelSelector.description%" + }, + "roo-cline.customStoragePath": { + "type": "string", + "default": "", + "description": "%settings.customStoragePath.description%" + } + } + } + }, "scripts": { "preinstall": "node scripts/bootstrap.mjs", "prepare": "husky", From 465dd5bad9f962c52a47904c5d8c8c43a90f100c Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Tue, 8 Jul 2025 16:31:44 -0600 Subject: [PATCH 2/5] feat: Adjust view header buttons for overflow menu Move less frequently used actions into the VS Code overflow menu: - Keep visible: New Task, Prompts, Settings - Move to overflow: MCP Servers, History, Open in Editor, Account --- package.json | 312 ----------------------------------------------- src/package.json | 31 +++-- 2 files changed, 14 insertions(+), 329 deletions(-) diff --git a/package.json b/package.json index c65847b3bc..61f1f6cdaf 100644 --- a/package.json +++ b/package.json @@ -2,320 +2,8 @@ "name": "roo-code", "packageManager": "pnpm@10.8.1", "engines": { - "vscode": "^1.84.0", "node": "20.19.2" }, - "author": { - "name": "Roo Code" - }, - "repository": { - "type": "git", - "url": "https://github.com/RooVetGit/Roo-Code" - }, - "homepage": "https://github.com/RooVetGit/Roo-Code", - "categories": [ - "AI", - "Chat", - "Programming Languages", - "Education", - "Snippets", - "Testing" - ], - "keywords": [ - "cline", - "claude", - "dev", - "mcp", - "openrouter", - "coding", - "agent", - "autonomous", - "chatgpt", - "sonnet", - "ai", - "llama", - "roo code", - "roocode" - ], - "activationEvents": [ - "onLanguage", - "onStartupFinished" - ], - "main": "./dist/extension.js", - "contributes": { - "submenus": [ - { - "id": "roo-code.contextMenu", - "label": "%views.contextMenu.label%" - }, - { - "id": "roo-code.terminalMenu", - "label": "%views.terminalMenu.label%" - } - ], - "viewsContainers": { - "activitybar": [ - { - "id": "roo-cline-ActivityBar", - "title": "%views.activitybar.title%", - "icon": "assets/icons/icon.svg" - } - ] - }, - "views": { - "roo-cline-ActivityBar": [ - { - "type": "webview", - "id": "roo-cline.SidebarProvider", - "name": "" - } - ] - }, - "commands": [ - { - "command": "roo-cline.plusButtonClicked", - "title": "%command.newTask.title%", - "icon": "$(add)" - }, - { - "command": "roo-cline.mcpButtonClicked", - "title": "%command.mcpServers.title%", - "icon": "$(server)" - }, - { - "command": "roo-cline.promptsButtonClicked", - "title": "%command.prompts.title%", - "icon": "$(notebook)" - }, - { - "command": "roo-cline.historyButtonClicked", - "title": "%command.history.title%", - "icon": "$(history)" - }, - { - "command": "roo-cline.popoutButtonClicked", - "title": "%command.openInEditor.title%", - "icon": "$(link-external)" - }, - { - "command": "roo-cline.settingsButtonClicked", - "title": "%command.settings.title%", - "icon": "$(settings-gear)" - }, - { - "command": "roo-cline.helpButtonClicked", - "title": "%command.documentation.title%", - "icon": "$(question)" - }, - { - "command": "roo-cline.openInNewTab", - "title": "%command.openInNewTab.title%", - "category": "%configuration.title%" - }, - { - "command": "roo-cline.explainCode", - "title": "%command.explainCode.title%", - "category": "%configuration.title%" - }, - { - "command": "roo-cline.fixCode", - "title": "%command.fixCode.title%", - "category": "%configuration.title%" - }, - { - "command": "roo-cline.improveCode", - "title": "%command.improveCode.title%", - "category": "%configuration.title%" - }, - { - "command": "roo-cline.addToContext", - "title": "%command.addToContext.title%", - "category": "%configuration.title%" - }, - { - "command": "roo-cline.newTask", - "title": "%command.newTask.title%", - "category": "%configuration.title%" - }, - { - "command": "roo-cline.terminalAddToContext", - "title": "%command.terminal.addToContext.title%", - "category": "Terminal" - }, - { - "command": "roo-cline.terminalFixCommand", - "title": "%command.terminal.fixCommand.title%", - "category": "Terminal" - }, - { - "command": "roo-cline.terminalExplainCommand", - "title": "%command.terminal.explainCommand.title%", - "category": "Terminal" - }, - { - "command": "roo-cline.setCustomStoragePath", - "title": "%command.setCustomStoragePath.title%", - "category": "%configuration.title%" - }, - { - "command": "roo-cline.focusInput", - "title": "%command.focusInput.title%", - "category": "%configuration.title%" - }, - { - "command": "roo.acceptInput", - "title": "%command.acceptInput.title%", - "category": "%configuration.title%" - } - ], - "menus": { - "editor/context": [ - { - "submenu": "roo-code.contextMenu", - "group": "navigation" - } - ], - "roo-code.contextMenu": [ - { - "command": "roo-cline.addToContext", - "group": "1_actions@1" - }, - { - "command": "roo-cline.explainCode", - "group": "1_actions@2" - }, - { - "command": "roo-cline.improveCode", - "group": "1_actions@3" - } - ], - "terminal/context": [ - { - "submenu": "roo-code.terminalMenu", - "group": "navigation" - } - ], - "roo-code.terminalMenu": [ - { - "command": "roo-cline.terminalAddToContext", - "group": "1_actions@1" - }, - { - "command": "roo-cline.terminalFixCommand", - "group": "1_actions@2" - }, - { - "command": "roo-cline.terminalExplainCommand", - "group": "1_actions@3" - } - ], - "view/title": [ - { - "command": "roo-cline.plusButtonClicked", - "group": "navigation@1", - "when": "view == roo-cline.SidebarProvider" - }, - { - "command": "roo-cline.promptsButtonClicked", - "group": "navigation@2", - "when": "view == roo-cline.SidebarProvider" - }, - { - "command": "roo-cline.mcpButtonClicked", - "when": "view == roo-cline.SidebarProvider" - }, - { - "command": "roo-cline.historyButtonClicked", - "when": "view == roo-cline.SidebarProvider" - }, - { - "command": "roo-cline.popoutButtonClicked", - "when": "view == roo-cline.SidebarProvider" - }, - { - "command": "roo-cline.settingsButtonClicked", - "group": "navigation@3", - "when": "view == roo-cline.SidebarProvider" - }, - { - "command": "roo-cline.helpButtonClicked", - "when": "view == roo-cline.SidebarProvider" - } - ], - "editor/title": [ - { - "command": "roo-cline.plusButtonClicked", - "group": "navigation@1", - "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" - }, - { - "command": "roo-cline.promptsButtonClicked", - "group": "navigation@2", - "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" - }, - { - "command": "roo-cline.mcpButtonClicked", - "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" - }, - { - "command": "roo-cline.historyButtonClicked", - "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" - }, - { - "command": "roo-cline.popoutButtonClicked", - "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" - }, - { - "command": "roo-cline.settingsButtonClicked", - "group": "navigation@3", - "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" - }, - { - "command": "roo-cline.helpButtonClicked", - "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" - } - ] - }, - "configuration": { - "title": "%configuration.title%", - "properties": { - "roo-cline.allowedCommands": { - "type": "array", - "items": { - "type": "string" - }, - "default": [ - "npm test", - "npm install", - "tsc", - "git log", - "git diff", - "git show" - ], - "description": "%commands.allowedCommands.description%" - }, - "roo-cline.vsCodeLmModelSelector": { - "type": "object", - "properties": { - "vendor": { - "type": "string", - "description": "%settings.vsCodeLmModelSelector.vendor.description%" - }, - "family": { - "type": "string", - "description": "%settings.vsCodeLmModelSelector.family.description%" - } - }, - "description": "%settings.vsCodeLmModelSelector.description%" - }, - "roo-cline.customStoragePath": { - "type": "string", - "default": "", - "description": "%settings.customStoragePath.description%" - } - } - } - }, "scripts": { "preinstall": "node scripts/bootstrap.mjs", "prepare": "husky", diff --git a/src/package.json b/src/package.json index 82438dd167..c845a05e5f 100644 --- a/src/package.json +++ b/src/package.json @@ -219,33 +219,29 @@ "when": "view == roo-cline.SidebarProvider" }, { - "command": "roo-cline.mcpButtonClicked", + "command": "roo-cline.marketplaceButtonClicked", "group": "navigation@2", "when": "view == roo-cline.SidebarProvider" }, { - "command": "roo-cline.marketplaceButtonClicked", + "command": "roo-cline.settingsButtonClicked", "group": "navigation@3", "when": "view == roo-cline.SidebarProvider" }, { - "command": "roo-cline.historyButtonClicked", - "group": "navigation@4", + "command": "roo-cline.mcpButtonClicked", "when": "view == roo-cline.SidebarProvider" }, { - "command": "roo-cline.popoutButtonClicked", - "group": "navigation@5", + "command": "roo-cline.historyButtonClicked", "when": "view == roo-cline.SidebarProvider" }, { - "command": "roo-cline.accountButtonClicked", - "group": "navigation@6", + "command": "roo-cline.popoutButtonClicked", "when": "view == roo-cline.SidebarProvider" }, { - "command": "roo-cline.settingsButtonClicked", - "group": "navigation@7", + "command": "roo-cline.accountButtonClicked", "when": "view == roo-cline.SidebarProvider" } ], @@ -256,28 +252,29 @@ "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, { - "command": "roo-cline.mcpButtonClicked", + "command": "roo-cline.marketplaceButtonClicked", "group": "navigation@2", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, { - "command": "roo-cline.marketplaceButtonClicked", + "command": "roo-cline.settingsButtonClicked", "group": "navigation@3", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, + { + "command": "roo-cline.mcpButtonClicked", + "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" + }, { "command": "roo-cline.historyButtonClicked", - "group": "navigation@4", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, { - "command": "roo-cline.accountButtonClicked", - "group": "navigation@5", + "command": "roo-cline.popoutButtonClicked", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, { - "command": "roo-cline.settingsButtonClicked", - "group": "navigation@6", + "command": "roo-cline.accountButtonClicked", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" } ] From 9780c9d0dc3b34146b7e67d1f8ba2f1f31cfb0a0 Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Tue, 8 Jul 2025 16:41:20 -0600 Subject: [PATCH 3/5] feat: adjust menu button visibility - move History to navigation bar, Settings to overflow --- src/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package.json b/src/package.json index c845a05e5f..b0d885b1ef 100644 --- a/src/package.json +++ b/src/package.json @@ -225,7 +225,6 @@ }, { "command": "roo-cline.settingsButtonClicked", - "group": "navigation@3", "when": "view == roo-cline.SidebarProvider" }, { @@ -234,6 +233,7 @@ }, { "command": "roo-cline.historyButtonClicked", + "group": "navigation@3", "when": "view == roo-cline.SidebarProvider" }, { @@ -258,7 +258,6 @@ }, { "command": "roo-cline.settingsButtonClicked", - "group": "navigation@3", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, { @@ -267,6 +266,7 @@ }, { "command": "roo-cline.historyButtonClicked", + "group": "navigation@3", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, { From eb2008eff08bf4781aa724c77f6d06a5f76569f8 Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Tue, 8 Jul 2025 16:45:19 -0600 Subject: [PATCH 4/5] feat: reorder navigation buttons - swap History and Marketplace positions - History button moved from navigation@3 to navigation@2 - Marketplace button moved from navigation@2 to navigation@3 - Updated in both view/title and editor/title sections --- src/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/package.json b/src/package.json index b0d885b1ef..d2f7b30845 100644 --- a/src/package.json +++ b/src/package.json @@ -219,7 +219,7 @@ "when": "view == roo-cline.SidebarProvider" }, { - "command": "roo-cline.marketplaceButtonClicked", + "command": "roo-cline.historyButtonClicked", "group": "navigation@2", "when": "view == roo-cline.SidebarProvider" }, @@ -232,7 +232,7 @@ "when": "view == roo-cline.SidebarProvider" }, { - "command": "roo-cline.historyButtonClicked", + "command": "roo-cline.marketplaceButtonClicked", "group": "navigation@3", "when": "view == roo-cline.SidebarProvider" }, @@ -252,7 +252,7 @@ "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, { - "command": "roo-cline.marketplaceButtonClicked", + "command": "roo-cline.historyButtonClicked", "group": "navigation@2", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, @@ -265,7 +265,7 @@ "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, { - "command": "roo-cline.historyButtonClicked", + "command": "roo-cline.marketplaceButtonClicked", "group": "navigation@3", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, From 922bf0ce8ca7282bd6c783f439a2a4c17c0e87f1 Mon Sep 17 00:00:00 2001 From: Daniel Riccio Date: Wed, 9 Jul 2025 12:55:05 -0500 Subject: [PATCH 5/5] fix: address review comments - properly configure overflow menu items - Remove navigation group from historyButtonClicked to move it to overflow - Add navigation@3 to settingsButtonClicked to keep it in primary header - Remove navigation group from marketplaceButtonClicked to move it to overflow This ensures only New Task and Settings remain in the primary header as intended. --- src/package.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/package.json b/src/package.json index d2f7b30845..f694a2fdf9 100644 --- a/src/package.json +++ b/src/package.json @@ -220,11 +220,11 @@ }, { "command": "roo-cline.historyButtonClicked", - "group": "navigation@2", "when": "view == roo-cline.SidebarProvider" }, { "command": "roo-cline.settingsButtonClicked", + "group": "navigation@3", "when": "view == roo-cline.SidebarProvider" }, { @@ -233,7 +233,6 @@ }, { "command": "roo-cline.marketplaceButtonClicked", - "group": "navigation@3", "when": "view == roo-cline.SidebarProvider" }, { @@ -253,11 +252,11 @@ }, { "command": "roo-cline.historyButtonClicked", - "group": "navigation@2", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, { "command": "roo-cline.settingsButtonClicked", + "group": "navigation@3", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, { @@ -266,7 +265,6 @@ }, { "command": "roo-cline.marketplaceButtonClicked", - "group": "navigation@3", "when": "activeWebviewPanelId == roo-cline.TabPanelProvider" }, {