Browse Source

Add app version to telemetry

Matt Rubens 10 months ago
parent
commit
082045ec66
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/core/webview/ClineProvider.ts

+ 6 - 0
src/core/webview/ClineProvider.ts

@@ -2534,9 +2534,15 @@ export class ClineProvider implements vscode.WebviewViewProvider {
 	 */
 	public async getTelemetryProperties(): Promise<Record<string, any>> {
 		const { mode, apiConfiguration } = await this.getState()
+		const appVersion = this.context.extension?.packageJSON?.version
 
 		const properties: Record<string, any> = {}
 
+		// Add extension version
+		if (appVersion) {
+			properties.appVersion = appVersion
+		}
+
 		// Add current mode
 		if (mode) {
 			properties.mode = mode