feat: register new code action commands in package manifest

This commit is contained in:
sam hoang
2025-01-12 17:51:31 +07:00
parent 86b051df35
commit 273bfc410b

View File

@@ -72,70 +72,102 @@
"title": "New Task", "title": "New Task",
"icon": "$(add)" "icon": "$(add)"
}, },
{ {
"command": "roo-cline.mcpButtonClicked", "command": "roo-cline.mcpButtonClicked",
"title": "MCP Servers", "title": "MCP Servers",
"icon": "$(server)" "icon": "$(server)"
}, },
{ {
"command": "roo-cline.promptsButtonClicked", "command": "roo-cline.promptsButtonClicked",
"title": "Prompts", "title": "Prompts",
"icon": "$(notebook)" "icon": "$(notebook)"
}, },
{ {
"command": "roo-cline.historyButtonClicked", "command": "roo-cline.historyButtonClicked",
"title": "History", "title": "History",
"icon": "$(history)" "icon": "$(history)"
}, },
{ {
"command": "roo-cline.popoutButtonClicked", "command": "roo-cline.popoutButtonClicked",
"title": "Open in Editor", "title": "Open in Editor",
"icon": "$(link-external)" "icon": "$(link-external)"
}, },
{ {
"command": "roo-cline.settingsButtonClicked", "command": "roo-cline.settingsButtonClicked",
"title": "Settings", "title": "Settings",
"icon": "$(settings-gear)" "icon": "$(settings-gear)"
}, },
{ {
"command": "roo-cline.openInNewTab", "command": "roo-cline.openInNewTab",
"title": "Open In New Tab", "title": "Open In New Tab",
"category": "Roo Code" "category": "Roo Code"
} },
{
"command": "roo-cline.explainCode",
"title": "Explain Code",
"category": "Roo Cline"
},
{
"command": "roo-cline.fixCode",
"title": "Fix Code",
"category": "Roo Cline"
},
{
"command": "roo-cline.improveCode",
"title": "Improve Code",
"category": "Roo Cline"
}
], ],
"menus": { "menus": {
"view/title": [ "editor/context": [
{ {
"command": "roo-cline.plusButtonClicked", "command": "roo-cline.explainCode",
"group": "navigation@1", "when": "editorHasSelection",
"when": "view == roo-cline.SidebarProvider" "group": "Roo Cline@1"
}, },
{ {
"command": "roo-cline.promptsButtonClicked", "command": "roo-cline.fixCode",
"group": "navigation@2", "when": "editorHasSelection",
"when": "view == roo-cline.SidebarProvider" "group": "Roo Cline@2"
}, },
{ {
"command": "roo-cline.mcpButtonClicked", "command": "roo-cline.improveCode",
"group": "navigation@3", "when": "editorHasSelection",
"when": "view == roo-cline.SidebarProvider" "group": "Roo Cline@3"
}, }
{ ],
"command": "roo-cline.historyButtonClicked", "view/title": [
"group": "navigation@4", {
"when": "view == roo-cline.SidebarProvider" "command": "roo-cline.plusButtonClicked",
}, "group": "navigation@1",
{ "when": "view == roo-cline.SidebarProvider"
"command": "roo-cline.popoutButtonClicked", },
"group": "navigation@5", {
"when": "view == roo-cline.SidebarProvider" "command": "roo-cline.promptsButtonClicked",
}, "group": "navigation@2",
{ "when": "view == roo-cline.SidebarProvider"
"command": "roo-cline.settingsButtonClicked", },
"group": "navigation@6", {
"when": "view == roo-cline.SidebarProvider" "command": "roo-cline.mcpButtonClicked",
} "group": "navigation@3",
] "when": "view == roo-cline.SidebarProvider"
},
{
"command": "roo-cline.historyButtonClicked",
"group": "navigation@4",
"when": "view == roo-cline.SidebarProvider"
},
{
"command": "roo-cline.popoutButtonClicked",
"group": "navigation@5",
"when": "view == roo-cline.SidebarProvider"
},
{
"command": "roo-cline.settingsButtonClicked",
"group": "navigation@6",
"when": "view == roo-cline.SidebarProvider"
}
]
}, },
"configuration": { "configuration": {
"title": "Roo Code", "title": "Roo Code",