Skip to content

Commit b761c24

Browse files
authored
Merge pull request RooCodeInc#1467 from RooVetGit/add_app_version_to_telemetry
Add app version to telemetry
2 parents 3a54a99 + 4c6f062 commit b761c24

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2534,8 +2534,19 @@ 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
2538+
const vscodeVersion = vscode.version
2539+
const platform = process.platform
25372540

2538-
const properties: Record<string, any> = {}
2541+
const properties: Record<string, any> = {
2542+
vscodeVersion,
2543+
platform,
2544+
}
2545+
2546+
// Add extension version
2547+
if (appVersion) {
2548+
properties.appVersion = appVersion
2549+
}
25392550

25402551
// Add current mode
25412552
if (mode) {

0 commit comments

Comments
 (0)