Skip to content

Commit 082045e

Browse files
committed
Add app version to telemetry
1 parent 29f8cde commit 082045e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2534,9 +2534,15 @@ export class ClineProvider implements vscode.WebviewViewProvider {
25342534
*/
25352535
public async getTelemetryProperties(): Promise<Record<string, any>> {
25362536
const { mode, apiConfiguration } = await this.getState()
2537+
const appVersion = this.context.extension?.packageJSON?.version
25372538

25382539
const properties: Record<string, any> = {}
25392540

2541+
// Add extension version
2542+
if (appVersion) {
2543+
properties.appVersion = appVersion
2544+
}
2545+
25402546
// Add current mode
25412547
if (mode) {
25422548
properties.mode = mode

0 commit comments

Comments
 (0)