425
426
export function getDefaultNewChatSessionResource(
427
>
configurationService: IConfigurationService,
constants.ts
428
>
chatSessionsService: Pick<IChatSessionsService, 'getChatSessionContribution' | 'getAllChatSessionContributions'>,
429
>
storageService: IStorageService,
430
>
workspace: IWorkspace,
431
>
agentHostEnabled: boolean,
432
>
options?: IDefaultNewChatSessionTypeOptions
433
>
): URI {
434
>
const defaultType = getDefaultNewChatSessionType(configurationService, chatSessionsService, storageService, workspace, agentHostEnabled, options);
435
>
return defaultType === localChatSessionType
436
>
? LocalChatSessionUri.getNewSessionUri()
437
>
: URI.from({ scheme: defaultType, path: `/untitled-${generateUuid()}` });
438
>
}
439
440
export function recordUserSelectedSessionType(