MCPcopy
hub / github.com/PowerShell/vscode-powershell / sendTelemetryEvent

Method sendTelemetryEvent

src/session.ts:1153–1168  ·  view source on GitHub ↗
(
        eventName: string,
        properties?: TelemetryEventProperties,
        measures?: TelemetryEventMeasurements,
    )

Source from the content-addressed store, hash-verified

1151 }
1152
1153 private sendTelemetryEvent(
1154 eventName: string,
1155 properties?: TelemetryEventProperties,
1156 measures?: TelemetryEventMeasurements,
1157 ): void {
1158 if (
1159 this.extensionContext.extensionMode ===
1160 vscode.ExtensionMode.Production
1161 ) {
1162 this.telemetryReporter.sendTelemetryEvent(
1163 eventName,
1164 properties,
1165 measures,
1166 );
1167 }
1168 }
1169
1170 private createStatusBarItem(): vscode.LanguageStatusItem {
1171 const statusTitle = "Show PowerShell Session Menu";

Callers 2

startLanguageClientMethod · 0.95
getVersionDetailsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected