From f161c7d5811abea7f6ce39c3d03b40d8c6168f1c Mon Sep 17 00:00:00 2001 From: Isaac Newton Date: Wed, 30 Apr 2025 15:30:13 +0700 Subject: [PATCH] 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",