Sfoglia il codice sorgente

Add editor name to telemetry (#3229)

Matt Rubens 7 mesi fa
parent
commit
42254cf654
2 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 5 0
      .changeset/brave-pigs-judge.md
  2. 2 0
      src/core/webview/ClineProvider.ts

+ 5 - 0
.changeset/brave-pigs-judge.md

@@ -0,0 +1,5 @@
+---
+"roo-cline": patch
+---
+
+Add editor name to telemetry

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

@@ -1476,10 +1476,12 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
 		const appVersion = this.context.extension?.packageJSON?.version
 		const vscodeVersion = vscode.version
 		const platform = process.platform
+		const editorName = vscode.env.appName // Get the editor name (VS Code, Cursor, etc.)
 
 		const properties: Record<string, any> = {
 			vscodeVersion,
 			platform,
+			editorName,
 		}
 
 		// Add extension version