💄
This commit is contained in:
parent
5335a721fa
commit
8714526077
|
@ -30,22 +30,20 @@ export class VSCodeTelemetryReporter implements TelemetryReporter {
|
||||||
private readonly clientVersionDelegate: () => string
|
private readonly clientVersionDelegate: () => string
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
public logTelemetry(eventName: string, properties?: { [prop: string]: string }) {
|
public logTelemetry(eventName: string, properties: { [prop: string]: string } = {}) {
|
||||||
const reporter = this.reporter;
|
const reporter = this.reporter;
|
||||||
if (reporter) {
|
if (!reporter) {
|
||||||
if (!properties) {
|
return;
|
||||||
properties = {};
|
|
||||||
}
|
|
||||||
|
|
||||||
/* __GDPR__FRAGMENT__
|
|
||||||
"TypeScriptCommonProperties" : {
|
|
||||||
"version" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
properties['version'] = this.clientVersionDelegate();
|
|
||||||
|
|
||||||
reporter.sendTelemetryEvent(eventName, properties);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* __GDPR__FRAGMENT__
|
||||||
|
"TypeScriptCommonProperties" : {
|
||||||
|
"version" : { "classification": "SystemMetaData", "purpose": "FeatureInsight" }
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
properties['version'] = this.clientVersionDelegate();
|
||||||
|
|
||||||
|
reporter.sendTelemetryEvent(eventName, properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
public dispose() {
|
public dispose() {
|
||||||
|
|
Loading…
Reference in a new issue