Skip to content

Commit f9a4c1b

Browse files
authored
Fix first party extension logging incorrect eventName (microsoft#165942)
1 parent 23cd53c commit f9a4c1b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/vs/workbench/api/common/extHostTelemetry.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,12 @@ export class ExtHostTelemetryLogger {
166166
}
167167

168168
private logEvent(eventName: string, data?: Record<string, any>): void {
169-
eventName = this._extension.identifier.value + '/' + eventName;
169+
// If it's a built-in extension (vscode publisher) we don't prefix the publisher and only the ext name
170+
if (this._extension.publisher === 'vscode') {
171+
eventName = this._extension.name + '/' + eventName;
172+
} else {
173+
eventName = this._extension.identifier.value + '/' + eventName;
174+
}
170175
data = this.mixInCommonPropsAndCleanData(data || {});
171176
this._appender.logEvent(eventName, data);
172177
this._logger.trace(eventName, data);

0 commit comments

Comments
 (0)