src/vs/platform/telemetry/node/appInsightsAppender.ts/AppInsightsAppender/_withAIClient
class AppInsightsAppender:	private _withAIClient(callback: (aiClient: appInsights.TelemetryClient) => void): void {
		if (!this._aiClient) {
			return;
		}

		if (typeof this._aiClient !== 'string') {
			callback(this._aiClient);
			return;
		}

		if (!this._asyncAIClient) {
			this._asyncAIClient = getClient(this._aiClient);
		}

		this._asyncAIClient.then(
			(aiClient) => {
				callback(aiClient);
			},
			(err) => {
				onUnexpectedError(err);
				console.error(err);
			}
		);
	}