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