|
51 | 51 | ], |
52 | 52 | "main": "./dist/extension.js", |
53 | 53 | "contributes": { |
| 54 | + "submenus": [ |
| 55 | + { |
| 56 | + "id": "roo-code.contextMenu", |
| 57 | + "label": "Roo Code" |
| 58 | + }, |
| 59 | + { |
| 60 | + "id": "roo-code.terminalMenu", |
| 61 | + "label": "Roo Code" |
| 62 | + } |
| 63 | + ], |
54 | 64 | "viewsContainers": { |
55 | 65 | "activitybar": [ |
56 | 66 | { |
|
112 | 122 | }, |
113 | 123 | { |
114 | 124 | "command": "roo-cline.explainCode", |
115 | | - "title": "Roo Code: Explain Code", |
| 125 | + "title": "Explain Code", |
116 | 126 | "category": "Roo Code" |
117 | 127 | }, |
118 | 128 | { |
119 | 129 | "command": "roo-cline.fixCode", |
120 | | - "title": "Roo Code: Fix Code", |
| 130 | + "title": "Fix Code", |
121 | 131 | "category": "Roo Code" |
122 | 132 | }, |
123 | 133 | { |
124 | 134 | "command": "roo-cline.improveCode", |
125 | | - "title": "Roo Code: Improve Code", |
| 135 | + "title": "Improve Code", |
126 | 136 | "category": "Roo Code" |
127 | 137 | }, |
128 | 138 | { |
129 | 139 | "command": "roo-cline.addToContext", |
130 | | - "title": "Roo Code: Add To Context", |
| 140 | + "title": "Add To Context", |
131 | 141 | "category": "Roo Code" |
132 | 142 | }, |
133 | 143 | { |
134 | 144 | "command": "roo-cline.terminalAddToContext", |
135 | | - "title": "Roo Code: Add Terminal Content to Context", |
| 145 | + "title": "Add Terminal Content to Context", |
136 | 146 | "category": "Terminal" |
137 | 147 | }, |
138 | 148 | { |
139 | 149 | "command": "roo-cline.terminalFixCommand", |
140 | | - "title": "Roo Code: Fix This Command", |
| 150 | + "title": "Fix This Command", |
141 | 151 | "category": "Terminal" |
142 | 152 | }, |
143 | 153 | { |
144 | 154 | "command": "roo-cline.terminalExplainCommand", |
145 | | - "title": "Roo Code: Explain This Command", |
| 155 | + "title": "Explain This Command", |
146 | 156 | "category": "Terminal" |
147 | 157 | }, |
148 | 158 | { |
149 | 159 | "command": "roo-cline.terminalFixCommandInCurrentTask", |
150 | | - "title": "Roo Code: Fix This Command (Current Task)", |
| 160 | + "title": "Fix This Command (Current Task)", |
151 | 161 | "category": "Terminal" |
152 | 162 | }, |
153 | 163 | { |
154 | 164 | "command": "roo-cline.terminalExplainCommandInCurrentTask", |
155 | | - "title": "Roo Code: Explain This Command (Current Task)", |
| 165 | + "title": "Explain This Command (Current Task)", |
156 | 166 | "category": "Terminal" |
157 | 167 | } |
158 | 168 | ], |
159 | 169 | "menus": { |
160 | 170 | "editor/context": [ |
| 171 | + { |
| 172 | + "submenu": "roo-code.contextMenu", |
| 173 | + "group": "navigation" |
| 174 | + } |
| 175 | + ], |
| 176 | + "roo-code.contextMenu": [ |
161 | 177 | { |
162 | 178 | "command": "roo-cline.explainCode", |
163 | | - "when": "editorHasSelection", |
164 | | - "group": "Roo Code@1" |
| 179 | + "group": "1_actions@1" |
165 | 180 | }, |
166 | 181 | { |
167 | 182 | "command": "roo-cline.fixCode", |
168 | | - "when": "editorHasSelection", |
169 | | - "group": "Roo Code@2" |
| 183 | + "group": "1_actions@2" |
170 | 184 | }, |
171 | 185 | { |
172 | 186 | "command": "roo-cline.improveCode", |
173 | | - "when": "editorHasSelection", |
174 | | - "group": "Roo Code@3" |
| 187 | + "group": "1_actions@3" |
175 | 188 | }, |
176 | 189 | { |
177 | 190 | "command": "roo-cline.addToContext", |
178 | | - "when": "editorHasSelection", |
179 | | - "group": "Roo Code@4" |
| 191 | + "group": "1_actions@4" |
180 | 192 | } |
181 | 193 | ], |
182 | 194 | "terminal/context": [ |
| 195 | + { |
| 196 | + "submenu": "roo-code.terminalMenu", |
| 197 | + "group": "navigation" |
| 198 | + } |
| 199 | + ], |
| 200 | + "roo-code.terminalMenu": [ |
183 | 201 | { |
184 | 202 | "command": "roo-cline.terminalAddToContext", |
185 | | - "group": "Roo Code@1" |
| 203 | + "group": "1_actions@1" |
186 | 204 | }, |
187 | 205 | { |
188 | 206 | "command": "roo-cline.terminalFixCommand", |
189 | | - "group": "Roo Code@2" |
| 207 | + "group": "1_actions@2" |
190 | 208 | }, |
191 | 209 | { |
192 | 210 | "command": "roo-cline.terminalExplainCommand", |
193 | | - "group": "Roo Code@3" |
| 211 | + "group": "1_actions@3" |
194 | 212 | }, |
195 | 213 | { |
196 | 214 | "command": "roo-cline.terminalFixCommandInCurrentTask", |
197 | | - "group": "Roo Code@5" |
| 215 | + "group": "1_actions@5" |
198 | 216 | }, |
199 | 217 | { |
200 | 218 | "command": "roo-cline.terminalExplainCommandInCurrentTask", |
201 | | - "group": "Roo Code@6" |
| 219 | + "group": "1_actions@6" |
202 | 220 | } |
203 | 221 | ], |
204 | 222 | "view/title": [ |
|
0 commit comments