Bump version to 2.0.8 and tag analytics with extension version

Umami data-tag now combines editor name and extension version
(e.g. "Visual Studio Code@2.0.8"), enabling filtering by either
dimension in analytics.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
andrepimenta
2026-04-24 23:56:11 +01:00
parent 6858f6a6c6
commit e73ab3bf0a
5 changed files with 7 additions and 7 deletions

View File

@@ -6,7 +6,7 @@
set -e set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VERSION="2.0.6" VERSION="2.0.8"
OUTPUT_NAME="vsix-claude-code-chat-${VERSION}.vsix" OUTPUT_NAME="vsix-claude-code-chat-${VERSION}.vsix"
echo "Building Open VSIX version ${VERSION}..." echo "Building Open VSIX version ${VERSION}..."

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "claude-code-chat", "name": "claude-code-chat",
"version": "2.0.7", "version": "2.0.8",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "claude-code-chat", "name": "claude-code-chat",
"version": "2.0.7", "version": "2.0.8",
"license": "SEE LICENSE IN LICENSE", "license": "SEE LICENSE IN LICENSE",
"devDependencies": { "devDependencies": {
"@types/mocha": "^10.0.10", "@types/mocha": "^10.0.10",

View File

@@ -2,7 +2,7 @@
"name": "claude-code-chat", "name": "claude-code-chat",
"displayName": "Chat for Claude Code", "displayName": "Chat for Claude Code",
"description": "Beautiful Claude Code Chat Interface for VS Code", "description": "Beautiful Claude Code Chat Interface for VS Code",
"version": "2.0.7", "version": "2.0.8",
"publisher": "AndrePimenta", "publisher": "AndrePimenta",
"author": "Andre Pimenta", "author": "Andre Pimenta",
"repository": { "repository": {

View File

@@ -3341,7 +3341,7 @@ class ClaudeChatProvider {
} }
private _getHtmlForWebview(): string { private _getHtmlForWebview(): string {
return getHtml(vscode.env?.isTelemetryEnabled, OPENCREDITS_API_URL, OPENCREDITS_WEB_URL, OPENCREDITS_PUBLISHABLE_KEY, vscode.env?.appName); return getHtml(vscode.env?.isTelemetryEnabled, OPENCREDITS_API_URL, OPENCREDITS_WEB_URL, OPENCREDITS_PUBLISHABLE_KEY, vscode.env?.appName, this._context?.extension?.packageJSON?.version);
} }
private _sendCurrentSettings(): void { private _sendCurrentSettings(): void {

View File

@@ -8,7 +8,7 @@ import getSkillsHtml from './skills-ui'
import getPluginsHtml from './plugins-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', editorName: string = 'unknown') => `<!DOCTYPE html> 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', extensionVersion: string = 'unknown') => `<!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
@@ -1085,7 +1085,7 @@ const getHtml = (isTelemetryEnabled: boolean, opencreditsApiUrl: string = 'https
2. Do I need to display a cookie notice to users? 2. Do I need to display a cookie notice to users?
No, Umami does not use any cookies in the tracking code. No, Umami does not use any cookies in the tracking code.
--> -->
${isTelemetryEnabled ? '<script defer src="https://product.opencredits.ai/script.js" data-website-id="0159e9b1-4a98-4b49-943a-32db3e743b95" data-tag="' + editorName + '"></script>' : '<!-- Analytics disabled due to VS Code telemetry settings -->'} ${isTelemetryEnabled ? '<script defer src="https://product.opencredits.ai/script.js" data-website-id="0159e9b1-4a98-4b49-943a-32db3e743b95" data-tag="' + editorName + '@' + extensionVersion + '"></script>' : '<!-- Analytics disabled due to VS Code telemetry settings -->'}
</body> </body>
</html>`; </html>`;