mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-11 22:51:26 +00:00
Merge pull request #1467 from RooVetGit/add_app_version_to_telemetry
Add app version to telemetry
This commit is contained in:
commit
b761c241ba
1 changed files with 12 additions and 1 deletions
|
|
@ -2534,8 +2534,19 @@ 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 vscodeVersion = vscode.version
|
||||
const platform = process.platform
|
||||
|
||||
const properties: Record<string, any> = {}
|
||||
const properties: Record<string, any> = {
|
||||
vscodeVersion,
|
||||
platform,
|
||||
}
|
||||
|
||||
// Add extension version
|
||||
if (appVersion) {
|
||||
properties.appVersion = appVersion
|
||||
}
|
||||
|
||||
// Add current mode
|
||||
if (mode) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue