Compare commits

...

6 Commits

Author SHA1 Message Date
Cline Evaluation b8d7601a37 Adding telemetry 2025-05-21 22:00:59 +04:00
Cline Evaluation d687daf116 Adding telemetry 2025-05-21 21:59:54 +04:00
Cline Evaluation b9087aebf0 Adding telemetry 2025-05-21 21:51:11 +04:00
Cline Evaluation 6ecbe0fd3f Adding telemetry 2025-05-21 21:49:30 +04:00
Cline Evaluation f8f2adb676 Adding telemetry 2025-05-21 15:28:35 +04:00
Cline Evaluation 657b50d9c0 Fix: Temporary revert protobus changes for Toggle plan and act mode 2025-05-21 15:28:33 +04:00
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Adding Telemetry for button clicks
+5
View File
@@ -310,6 +310,7 @@ export async function activate(context: vscode.ExtensionContext) {
languageId,
Array.isArray(diagnostics) ? diagnostics : undefined,
)
telemetryService.captureButtonClick("codeAction_addToChat", visibleWebview?.controller.task?.taskId, true)
}),
)
@@ -481,6 +482,7 @@ export async function activate(context: vscode.ExtensionContext) {
// Send to sidebar provider with diagnostics
const visibleWebview = WebviewProvider.getVisibleInstance()
await visibleWebview?.controller.fixWithCline(selectedText, filePath, languageId, diagnostics)
telemetryService.captureButtonClick("codeAction_fixWithCline", visibleWebview?.controller.task?.taskId, true)
}),
)
@@ -502,6 +504,7 @@ export async function activate(context: vscode.ExtensionContext) {
const fileMention = visibleWebview?.controller.getFileMentionFromPath(filePath) || filePath
const prompt = `Explain the following code from ${fileMention}:\n\`\`\`${editor.document.languageId}\n${selectedText}\n\`\`\``
await visibleWebview?.controller.initTask(prompt)
telemetryService.captureButtonClick("codeAction_explainCode", visibleWebview?.controller.task?.taskId, true)
}),
)
@@ -523,6 +526,7 @@ export async function activate(context: vscode.ExtensionContext) {
const fileMention = visibleWebview?.controller.getFileMentionFromPath(filePath) || filePath
const prompt = `Improve the following code from ${fileMention} (e.g., suggest refactorings, optimizations, or better practices):\n\`\`\`${editor.document.languageId}\n${selectedText}\n\`\`\``
await visibleWebview?.controller.initTask(prompt)
telemetryService.captureButtonClick("codeAction_improveCode", visibleWebview?.controller.task?.taskId, true)
}),
)
@@ -584,6 +588,7 @@ export async function activate(context: vscode.ExtensionContext) {
"Could not activate Cline view. Please try opening it manually from the Activity Bar.",
)
}
telemetryService.captureButtonClick("command_focusChatInput", activeWebviewProvider?.controller.task?.taskId, true)
}),
)