Skip to content

Commit 63a1252

Browse files
committed
Add missing --plugin argument when syncing ai activity
1 parent f840c59 commit 63a1252

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wakatime.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,9 @@ export class WakaTime {
818818
private async syncAIHeartbeats(): Promise<void> {
819819
if (!this.dependencies.isCliInstalled()) return;
820820

821-
const args = ['--sync-ai-activity'];
821+
const user_agent =
822+
this.editorName + '/' + vscode.version + ' vscode-wakatime/' + this.extension.version;
823+
const args = ['--sync-ai-activity', '--plugin', Utils.quote(user_agent)];
822824

823825
if (this.isMetricsEnabled) args.push('--metrics');
824826

0 commit comments

Comments
 (0)