'use strict';
import * as vscode from 'vscode';

const appInsights = require("applicationinsights");

export class AppInsightsClient {
    private _client;
    private _enableAppInsights;

    constructor() {
        this._client = appInsights.getClient("a25ddf11-20fc-45c6-96ae-524f47754f28");
        let config = vscode.workspace.getConfiguration('code-runner');
        this._enableAppInsights = config.get<boolean>('enableAppInsights');
    }

    public sendEvent(eventName: string): void {
        if (this._enableAppInsights) {
            this._client.trackEvent(eventName);
        }
    }
}
'use strict';
import * as vscode from 'vscode';

const appInsights = require("applicationinsights");

export class AppInsightsClient {
    private _client;
    private _enableAppInsights;

    constructor() {
        this._client = appInsights.getClient('a25ddf11-20fc-45c6-96ae-524f47754f28');
        let config = vscode.workspace.getConfiguration('code-runner');
        this._enableAppInsights = config.get<boolean>('enableAppInsights');
    }

    public sendEvent(eventName: string): void {
        if (this._enableAppInsights) {
            this._client.trackEvent(eventName === '' ? 'bat' : eventName);
        }
    }
}
Handle tracking evernt for bat (the executor is '')
Handle tracking evernt for bat (the executor is '')
