|
50 | 50 | ], |
51 | 51 | "main": "./dist/extension.js", |
52 | 52 | "contributes": { |
| 53 | + "submenus": [ |
| 54 | + { |
| 55 | + "id": "roo-code.contextMenu", |
| 56 | + "label": "Roo Code" |
| 57 | + }, |
| 58 | + { |
| 59 | + "id": "roo-code.terminalMenu", |
| 60 | + "label": "Roo Code" |
| 61 | + } |
| 62 | + ], |
53 | 63 | "viewsContainers": { |
54 | 64 | "activitybar": [ |
55 | 65 | { |
|
157 | 167 | ], |
158 | 168 | "menus": { |
159 | 169 | "editor/context": [ |
| 170 | + { |
| 171 | + "submenu": "roo-code.contextMenu", |
| 172 | + "group": "navigation" |
| 173 | + } |
| 174 | + ], |
| 175 | + "roo-code.contextMenu": [ |
160 | 176 | { |
161 | 177 | "command": "roo-cline.explainCode", |
162 | | - "when": "editorHasSelection", |
163 | | - "group": "Roo Code@1" |
| 178 | + "group": "1_actions@1" |
164 | 179 | }, |
165 | 180 | { |
166 | 181 | "command": "roo-cline.fixCode", |
167 | | - "when": "editorHasSelection", |
168 | | - "group": "Roo Code@2" |
| 182 | + "group": "1_actions@2" |
169 | 183 | }, |
170 | 184 | { |
171 | 185 | "command": "roo-cline.improveCode", |
172 | | - "when": "editorHasSelection", |
173 | | - "group": "Roo Code@3" |
| 186 | + "group": "1_actions@3" |
174 | 187 | }, |
175 | 188 | { |
176 | 189 | "command": "roo-cline.addToContext", |
177 | | - "when": "editorHasSelection", |
178 | | - "group": "Roo Code@4" |
| 190 | + "group": "1_actions@4" |
179 | 191 | } |
180 | 192 | ], |
181 | 193 | "terminal/context": [ |
| 194 | + { |
| 195 | + "submenu": "roo-code.terminalMenu", |
| 196 | + "group": "navigation" |
| 197 | + } |
| 198 | + ], |
| 199 | + "roo-code.terminalMenu": [ |
182 | 200 | { |
183 | 201 | "command": "roo-cline.terminalAddToContext", |
184 | | - "group": "Roo Code@1" |
| 202 | + "group": "1_actions@1" |
185 | 203 | }, |
186 | 204 | { |
187 | 205 | "command": "roo-cline.terminalFixCommand", |
188 | | - "group": "Roo Code@2" |
| 206 | + "group": "1_actions@2" |
189 | 207 | }, |
190 | 208 | { |
191 | 209 | "command": "roo-cline.terminalExplainCommand", |
192 | | - "group": "Roo Code@3" |
| 210 | + "group": "1_actions@3" |
193 | 211 | }, |
194 | 212 | { |
195 | 213 | "command": "roo-cline.terminalFixCommandInCurrentTask", |
196 | | - "group": "Roo Code@5" |
| 214 | + "group": "1_actions@5" |
197 | 215 | }, |
198 | 216 | { |
199 | 217 | "command": "roo-cline.terminalExplainCommandInCurrentTask", |
200 | | - "group": "Roo Code@6" |
| 218 | + "group": "1_actions@6" |
201 | 219 | } |
202 | 220 | ], |
203 | 221 | "view/title": [ |
|
0 commit comments