mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Add language to telemetry
This commit is contained in:
parent
29bab0a1c3
commit
129020ea00
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue