src/vs/workbench/api/browser/mainThreadTelemetry.ts/MainThreadTelemetry/constructor
class MainThreadTelemetry:	constructor(
		extHostContext: IExtHostContext,
		@ITelemetryService private readonly _telemetryService: ITelemetryService,
		@IConfigurationService private readonly _configurationService: IConfigurationService,
		@IEnvironmentService private readonly _environmenService: IEnvironmentService,
	) {
		super();

		this._proxy = extHostContext.getProxy(ExtHostContext.ExtHostTelemetry);

		if (!this._environmenService.disableTelemetry) {
			this._register(this._configurationService.onDidChangeConfiguration(e => {
				if (e.affectedKeys.includes('telemetry.enableTelemetry')) {
					this._proxy.$onDidChangeTelemetryEnabled(this.telemetryEnabled);
				}
			}));
		}

		this._proxy.$initializeTelemetryEnabled(this.telemetryEnabled);
	}