Skip to content

Commit a7ae6c4

Browse files
committed
feat: user prompt in code action
1 parent b8fd389 commit a7ae6c4

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

src/extension.ts

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,29 @@ export function activate(context: vscode.ExtensionContext) {
201201
}
202202

203203
// Register code action commands
204-
registerCodeAction(context, "roo-cline.explainCode", "EXPLAIN")
204+
registerCodeAction(
205+
context,
206+
"roo-cline.explainCode",
207+
"EXPLAIN",
208+
"What would you like Roo to explain?",
209+
"E.g. How does the error handling work?",
210+
)
205211

206-
registerCodeAction(context, "roo-cline.fixCode", "FIX")
212+
registerCodeAction(
213+
context,
214+
"roo-cline.fixCode",
215+
"FIX",
216+
"What would you like Roo to fix?",
217+
"E.g. Maintain backward compatibility",
218+
)
207219

208-
registerCodeAction(context, "roo-cline.improveCode", "IMPROVE")
220+
registerCodeAction(
221+
context,
222+
"roo-cline.improveCode",
223+
"IMPROVE",
224+
"What would you like Roo to improve?",
225+
"E.g. Focus on performance optimization",
226+
)
209227

210228
return createClineAPI(outputChannel, sidebarProvider)
211229
}

0 commit comments

Comments
 (0)