3044
return undefined;
3045
}
3047
}
3048
3049
private _isLaunchTokenCurrent(): boolean {
3050
>
return this._launchPlan.githubToken !== undefined && this._isLaunchTokenStillCurrent();
copilotAgentSession.ts
3051
>
}
3052
3053
private _toRepoInfoTelemetryContext(context: IRestrictedTelemetryContext): IAgentHostRestrictedTelemetryContext {
3055
>
restrictedTelemetryEnabled: context.restrictedTelemetryEnabled,
3056
>
trackingId: context.trackingId,
3057
>
telemetryEndpoint: context.telemetryEndpoint ? `${context.telemetryEndpoint.replace(/\/+$/, '')}/telemetry` : undefined,
3058
>
isInternal: context.isInternal === true,
3059
>
userName: context.userName,
3060
>
isVscodeTeamMember: context.isVscodeTeamMember === true,
3061
>
copilotIgnoreEnabled: context.copilotIgnoreEnabled,
3062
>
};
3063
>
}
3064
3065
// ---- event wiring -------------------------------------------------------