(info: PlatformInformation)
| 220 | } |
| 221 | |
| 222 | function sendTelemetry(info: PlatformInformation): void { |
| 223 | const telemetryProperties: { [key: string]: string } = {}; |
| 224 | if (info.distribution) { |
| 225 | telemetryProperties['linuxDistroName'] = info.distribution.name; |
| 226 | telemetryProperties['linuxDistroVersion'] = info.distribution.version; |
| 227 | } |
| 228 | telemetryProperties['osArchitecture'] = os.arch(); |
| 229 | telemetryProperties['infoArchitecture'] = info.architecture; |
| 230 | const targetPopulation: TargetPopulation = util.getCppToolsTargetPopulation(); |
| 231 | switch (targetPopulation) { |
| 232 | case TargetPopulation.Public: |
| 233 | telemetryProperties['targetPopulation'] = "Public"; |
| 234 | break; |
| 235 | case TargetPopulation.Internal: |
| 236 | telemetryProperties['targetPopulation'] = "Internal"; |
| 237 | break; |
| 238 | case TargetPopulation.Insiders: |
| 239 | telemetryProperties['targetPopulation'] = "Insiders"; |
| 240 | break; |
| 241 | default: |
| 242 | break; |
| 243 | } |
| 244 | telemetryProperties['appName'] = vscode.env.appName; |
| 245 | Telemetry.logDebuggerEvent("acquisition", telemetryProperties); |
| 246 | logMachineIdMappings().catch(logAndReturn.undefined); |
| 247 | } |
| 248 | |
| 249 | async function checkVsixCompatibility(): Promise<void> { |
| 250 | const ignoreMismatchedCompatibleVsix: PersistentState<boolean> = new PersistentState<boolean>("CPP." + util.packageJson.version + ".ignoreMismatchedCompatibleVsix", false); |
no test coverage detected