1421
return undefined;
1422
}
1424
>
const client = await this._ensureClient();
1425
>
const sessionMetadata = await client.getSessionMetadata(sessionId);
1426
>
if (!sessionMetadata) {
1427
return undefined;
1428
}
1430
>
let project = storedMetadata?.project;
1431
if (storedMetadata && !storedMetadata.resolved) {
1432
>
const projectLimiter = new Limiter<IAgentSessionProjectInfo | undefined>(1);
copilotAgent.ts
1433
>
project = await this._resolveSessionProject(sessionMetadata?.context, projectLimiter, new Map<string, Promise<IAgentSessionProjectInfo | undefined>>());
1434
>
void this._storeSessionProjectResolution(session, project);
1435
>
}
1436
>
1437
const workingDirectory = storedMetadata?.workingDirectory ?? (typeof sessionMetadata?.context?.workingDirectory === 'string' ? URI.file(sessionMetadata.context.workingDirectory) : undefined);
1438
return {