Browse Source

Merge pull request #534 from samhvw8/feat/code-action-user-prompt

feat: user prompt in code action
Matt Rubens 11 months ago
parent
commit
a83d8dacbf
1 changed files with 21 additions and 3 deletions
  1. 21 3
      src/extension.ts

+ 21 - 3
src/extension.ts

@@ -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)
 }