From 05a15d19a60a96ffd004e8f0aef367c2532a9670 Mon Sep 17 00:00:00 2001 From: andrepimenta Date: Sun, 12 Apr 2026 14:55:34 +0100 Subject: [PATCH] Add editor name tag to Umami analytics Pass vscode.env.appName (VS Code, Cursor, etc.) as data-tag on the Umami script to segment analytics by editor. Co-Authored-By: Claude Opus 4.6 (1M context) --- build/open-vsix/build.sh | 2 +- package.json | 2 +- src/extension.ts | 2 +- src/ui.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/open-vsix/build.sh b/build/open-vsix/build.sh index a673553..6dacc7b 100755 --- a/build/open-vsix/build.sh +++ b/build/open-vsix/build.sh @@ -6,7 +6,7 @@ set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -VERSION="1.1.0" +VERSION="2.0.1" OUTPUT_NAME="vsix-claude-code-chat-${VERSION}.vsix" echo "Building Open VSIX version ${VERSION}..." diff --git a/package.json b/package.json index 798bf0f..addaf3b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "claude-code-chat", "displayName": "Chat for Claude Code", "description": "Beautiful Claude Code Chat Interface for VS Code", - "version": "2.0.0", + "version": "2.0.1", "publisher": "AndrePimenta", "author": "Andre Pimenta", "repository": { diff --git a/src/extension.ts b/src/extension.ts index 106cd56..589c998 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -3327,7 +3327,7 @@ class ClaudeChatProvider { } private _getHtmlForWebview(): string { - return getHtml(vscode.env?.isTelemetryEnabled, OPENCREDITS_API_URL, OPENCREDITS_WEB_URL, OPENCREDITS_PUBLISHABLE_KEY); + return getHtml(vscode.env?.isTelemetryEnabled, OPENCREDITS_API_URL, OPENCREDITS_WEB_URL, OPENCREDITS_PUBLISHABLE_KEY, vscode.env?.appName); } private _sendCurrentSettings(): void { diff --git a/src/ui.ts b/src/ui.ts index 3a1f2e1..68ae0c7 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -8,7 +8,7 @@ import getSkillsHtml from './skills-ui' import getPluginsHtml from './plugins-ui' -const getHtml = (isTelemetryEnabled: boolean, opencreditsApiUrl: string = 'https://ccc.api.opencredits.ai', opencreditsWebUrl: string = 'https://ccc.opencredits.ai', opencreditsPublishableKey: string = 'oc_pk_c43da4f9a9484ae484ad29bc97cc354f') => ` +const getHtml = (isTelemetryEnabled: boolean, opencreditsApiUrl: string = 'https://ccc.api.opencredits.ai', opencreditsWebUrl: string = 'https://ccc.opencredits.ai', opencreditsPublishableKey: string = 'oc_pk_c43da4f9a9484ae484ad29bc97cc354f', editorName: string = 'unknown') => ` @@ -1076,7 +1076,7 @@ const getHtml = (isTelemetryEnabled: boolean, opencreditsApiUrl: string = 'https 2. Do I need to display a cookie notice to users? No, Umami does not use any cookies in the tracking code. --> - ${isTelemetryEnabled ? '' : ''} + ${isTelemetryEnabled ? '' : ''} `;