s) {
        // If the start event has the tab property, set it as the next tab on the previous end event.
        if (startProperties[TAB_PROPERTY_NAME]) {
            endProperties = endProperties || {};
            endProperties[NEXT_TAB_PROPERTY_NAME] = startProperties[TAB_PROPERTY_NAME];
        }
        this._telemetryProxy.sendIpcEndUserTask(TelemetryEventNames.SELECT_TAB, this._lastTabSwitchEventId, endProperties, vs_telemetry_api_1.TelemetryResult.Success);
        this._lastTabSwitchEventId = Session_1.createSessionId();
        this._telemetryProxy.sendIpcStartUserTask(TelemetryEventNames.SELECT_TAB, this._lastTabSwitchEventId, startProperties);
    };
    return TabSwitchTelemetryProxy;
}());
exports.TabSwitchTelemetryProxy = TabSwitchTelemetryProxy;
exports.tabSwitchTelemetryProxy = new TabSwitchTelemetryProxy(TelemetryProxy_1.telemetryProxy);
//# sourceMappingURL=TabSwitchTelemetryProxy.js.map