Skip to content

Commit 273bfc4

Browse files
committed
feat: register new code action commands in package manifest
1 parent 86b051d commit 273bfc4

File tree

1 file changed

+94
-62
lines changed

1 file changed

+94
-62
lines changed

package.json

Lines changed: 94 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -72,70 +72,102 @@
7272
"title": "New Task",
7373
"icon": "$(add)"
7474
},
75-
{
76-
"command": "roo-cline.mcpButtonClicked",
77-
"title": "MCP Servers",
78-
"icon": "$(server)"
79-
},
80-
{
81-
"command": "roo-cline.promptsButtonClicked",
82-
"title": "Prompts",
83-
"icon": "$(notebook)"
84-
},
85-
{
86-
"command": "roo-cline.historyButtonClicked",
87-
"title": "History",
88-
"icon": "$(history)"
89-
},
90-
{
91-
"command": "roo-cline.popoutButtonClicked",
92-
"title": "Open in Editor",
93-
"icon": "$(link-external)"
94-
},
95-
{
96-
"command": "roo-cline.settingsButtonClicked",
97-
"title": "Settings",
98-
"icon": "$(settings-gear)"
99-
},
100-
{
101-
"command": "roo-cline.openInNewTab",
102-
"title": "Open In New Tab",
103-
"category": "Roo Code"
104-
}
75+
{
76+
"command": "roo-cline.mcpButtonClicked",
77+
"title": "MCP Servers",
78+
"icon": "$(server)"
79+
},
80+
{
81+
"command": "roo-cline.promptsButtonClicked",
82+
"title": "Prompts",
83+
"icon": "$(notebook)"
84+
},
85+
{
86+
"command": "roo-cline.historyButtonClicked",
87+
"title": "History",
88+
"icon": "$(history)"
89+
},
90+
{
91+
"command": "roo-cline.popoutButtonClicked",
92+
"title": "Open in Editor",
93+
"icon": "$(link-external)"
94+
},
95+
{
96+
"command": "roo-cline.settingsButtonClicked",
97+
"title": "Settings",
98+
"icon": "$(settings-gear)"
99+
},
100+
{
101+
"command": "roo-cline.openInNewTab",
102+
"title": "Open In New Tab",
103+
"category": "Roo Code"
104+
},
105+
{
106+
"command": "roo-cline.explainCode",
107+
"title": "Explain Code",
108+
"category": "Roo Cline"
109+
},
110+
{
111+
"command": "roo-cline.fixCode",
112+
"title": "Fix Code",
113+
"category": "Roo Cline"
114+
},
115+
{
116+
"command": "roo-cline.improveCode",
117+
"title": "Improve Code",
118+
"category": "Roo Cline"
119+
}
105120
],
106121
"menus": {
107-
"view/title": [
108-
{
109-
"command": "roo-cline.plusButtonClicked",
110-
"group": "navigation@1",
111-
"when": "view == roo-cline.SidebarProvider"
112-
},
113-
{
114-
"command": "roo-cline.promptsButtonClicked",
115-
"group": "navigation@2",
116-
"when": "view == roo-cline.SidebarProvider"
117-
},
118-
{
119-
"command": "roo-cline.mcpButtonClicked",
120-
"group": "navigation@3",
121-
"when": "view == roo-cline.SidebarProvider"
122-
},
123-
{
124-
"command": "roo-cline.historyButtonClicked",
125-
"group": "navigation@4",
126-
"when": "view == roo-cline.SidebarProvider"
127-
},
128-
{
129-
"command": "roo-cline.popoutButtonClicked",
130-
"group": "navigation@5",
131-
"when": "view == roo-cline.SidebarProvider"
132-
},
133-
{
134-
"command": "roo-cline.settingsButtonClicked",
135-
"group": "navigation@6",
136-
"when": "view == roo-cline.SidebarProvider"
137-
}
138-
]
122+
"editor/context": [
123+
{
124+
"command": "roo-cline.explainCode",
125+
"when": "editorHasSelection",
126+
"group": "Roo Cline@1"
127+
},
128+
{
129+
"command": "roo-cline.fixCode",
130+
"when": "editorHasSelection",
131+
"group": "Roo Cline@2"
132+
},
133+
{
134+
"command": "roo-cline.improveCode",
135+
"when": "editorHasSelection",
136+
"group": "Roo Cline@3"
137+
}
138+
],
139+
"view/title": [
140+
{
141+
"command": "roo-cline.plusButtonClicked",
142+
"group": "navigation@1",
143+
"when": "view == roo-cline.SidebarProvider"
144+
},
145+
{
146+
"command": "roo-cline.promptsButtonClicked",
147+
"group": "navigation@2",
148+
"when": "view == roo-cline.SidebarProvider"
149+
},
150+
{
151+
"command": "roo-cline.mcpButtonClicked",
152+
"group": "navigation@3",
153+
"when": "view == roo-cline.SidebarProvider"
154+
},
155+
{
156+
"command": "roo-cline.historyButtonClicked",
157+
"group": "navigation@4",
158+
"when": "view == roo-cline.SidebarProvider"
159+
},
160+
{
161+
"command": "roo-cline.popoutButtonClicked",
162+
"group": "navigation@5",
163+
"when": "view == roo-cline.SidebarProvider"
164+
},
165+
{
166+
"command": "roo-cline.settingsButtonClicked",
167+
"group": "navigation@6",
168+
"when": "view == roo-cline.SidebarProvider"
169+
}
170+
]
139171
},
140172
"configuration": {
141173
"title": "Roo Code",

0 commit comments

Comments
 (0)