mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
feat: user prompt in code action
This commit is contained in:
@@ -201,11 +201,29 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
}
|
||||
|
||||
// Register code action commands
|
||||
registerCodeAction(context, "roo-cline.explainCode", "EXPLAIN")
|
||||
registerCodeAction(
|
||||
context,
|
||||
"roo-cline.explainCode",
|
||||
"EXPLAIN",
|
||||
"What would you like Roo to explain?",
|
||||
"E.g. How does the error handling work?",
|
||||
)
|
||||
|
||||
registerCodeAction(context, "roo-cline.fixCode", "FIX")
|
||||
registerCodeAction(
|
||||
context,
|
||||
"roo-cline.fixCode",
|
||||
"FIX",
|
||||
"What would you like Roo to fix?",
|
||||
"E.g. Maintain backward compatibility",
|
||||
)
|
||||
|
||||
registerCodeAction(context, "roo-cline.improveCode", "IMPROVE")
|
||||
registerCodeAction(
|
||||
context,
|
||||
"roo-cline.improveCode",
|
||||
"IMPROVE",
|
||||
"What would you like Roo to improve?",
|
||||
"E.g. Focus on performance optimization",
|
||||
)
|
||||
|
||||
return createClineAPI(outputChannel, sidebarProvider)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user