Add language to telemetry

This commit is contained in:
Matt Rubens 2025-03-16 14:05:25 -04:00
parent 29bab0a1c3
commit 129020ea00

View file

@ -2619,7 +2619,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
* like the current mode, API provider, etc.
*/
public async getTelemetryProperties(): Promise<Record<string, any>> {
const { mode, apiConfiguration } = await this.getState()
const { mode, apiConfiguration, language } = await this.getState()
const appVersion = this.context.extension?.packageJSON?.version
const vscodeVersion = vscode.version
const platform = process.platform
@ -2634,6 +2634,11 @@ export class ClineProvider implements vscode.WebviewViewProvider {
properties.appVersion = appVersion
}
// Add language
if (language) {
properties.language = language
}
// Add current mode
if (mode) {
properties.mode = mode