Skip to content

Commit 38d8a3d

Browse files
samhvw8mrubens
andauthored
feat submenu (#1811)
* feat submenu * Remove duplicative Roo Code: prefix --------- Co-authored-by: Matt Rubens <[email protected]>
1 parent 6bc81c2 commit 38d8a3d

File tree

1 file changed

+40
-22
lines changed

1 file changed

+40
-22
lines changed

package.json

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@
5151
],
5252
"main": "./dist/extension.js",
5353
"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+
],
5464
"viewsContainers": {
5565
"activitybar": [
5666
{
@@ -112,93 +122,101 @@
112122
},
113123
{
114124
"command": "roo-cline.explainCode",
115-
"title": "Roo Code: Explain Code",
125+
"title": "Explain Code",
116126
"category": "Roo Code"
117127
},
118128
{
119129
"command": "roo-cline.fixCode",
120-
"title": "Roo Code: Fix Code",
130+
"title": "Fix Code",
121131
"category": "Roo Code"
122132
},
123133
{
124134
"command": "roo-cline.improveCode",
125-
"title": "Roo Code: Improve Code",
135+
"title": "Improve Code",
126136
"category": "Roo Code"
127137
},
128138
{
129139
"command": "roo-cline.addToContext",
130-
"title": "Roo Code: Add To Context",
140+
"title": "Add To Context",
131141
"category": "Roo Code"
132142
},
133143
{
134144
"command": "roo-cline.terminalAddToContext",
135-
"title": "Roo Code: Add Terminal Content to Context",
145+
"title": "Add Terminal Content to Context",
136146
"category": "Terminal"
137147
},
138148
{
139149
"command": "roo-cline.terminalFixCommand",
140-
"title": "Roo Code: Fix This Command",
150+
"title": "Fix This Command",
141151
"category": "Terminal"
142152
},
143153
{
144154
"command": "roo-cline.terminalExplainCommand",
145-
"title": "Roo Code: Explain This Command",
155+
"title": "Explain This Command",
146156
"category": "Terminal"
147157
},
148158
{
149159
"command": "roo-cline.terminalFixCommandInCurrentTask",
150-
"title": "Roo Code: Fix This Command (Current Task)",
160+
"title": "Fix This Command (Current Task)",
151161
"category": "Terminal"
152162
},
153163
{
154164
"command": "roo-cline.terminalExplainCommandInCurrentTask",
155-
"title": "Roo Code: Explain This Command (Current Task)",
165+
"title": "Explain This Command (Current Task)",
156166
"category": "Terminal"
157167
}
158168
],
159169
"menus": {
160170
"editor/context": [
171+
{
172+
"submenu": "roo-code.contextMenu",
173+
"group": "navigation"
174+
}
175+
],
176+
"roo-code.contextMenu": [
161177
{
162178
"command": "roo-cline.explainCode",
163-
"when": "editorHasSelection",
164-
"group": "Roo Code@1"
179+
"group": "1_actions@1"
165180
},
166181
{
167182
"command": "roo-cline.fixCode",
168-
"when": "editorHasSelection",
169-
"group": "Roo Code@2"
183+
"group": "1_actions@2"
170184
},
171185
{
172186
"command": "roo-cline.improveCode",
173-
"when": "editorHasSelection",
174-
"group": "Roo Code@3"
187+
"group": "1_actions@3"
175188
},
176189
{
177190
"command": "roo-cline.addToContext",
178-
"when": "editorHasSelection",
179-
"group": "Roo Code@4"
191+
"group": "1_actions@4"
180192
}
181193
],
182194
"terminal/context": [
195+
{
196+
"submenu": "roo-code.terminalMenu",
197+
"group": "navigation"
198+
}
199+
],
200+
"roo-code.terminalMenu": [
183201
{
184202
"command": "roo-cline.terminalAddToContext",
185-
"group": "Roo Code@1"
203+
"group": "1_actions@1"
186204
},
187205
{
188206
"command": "roo-cline.terminalFixCommand",
189-
"group": "Roo Code@2"
207+
"group": "1_actions@2"
190208
},
191209
{
192210
"command": "roo-cline.terminalExplainCommand",
193-
"group": "Roo Code@3"
211+
"group": "1_actions@3"
194212
},
195213
{
196214
"command": "roo-cline.terminalFixCommandInCurrentTask",
197-
"group": "Roo Code@5"
215+
"group": "1_actions@5"
198216
},
199217
{
200218
"command": "roo-cline.terminalExplainCommandInCurrentTask",
201-
"group": "Roo Code@6"
219+
"group": "1_actions@6"
202220
}
203221
],
204222
"view/title": [

0 commit comments

Comments
 (0)