687
688
private async _getSessionCustomizationDirectory(session: URI): Promise<URI | undefined> {
690
>
const provisional = this._provisionalSessions.get(sessionId);
691
>
if (provisional) {
692
return provisional.workingDirectory;
693
}
694
const entry = this._findAnySession(sessionId);
695
>
const metadata = entry ? undefined : await this._readSessionMetadata(session);
copilotAgent.ts
696
// For non-provisional sessions the anchor follows the working directory
697
// (the worktree). Prefer it over a persisted `customizationDirectory`,
698
// which older sessions stored as the original user-picked folder.
699
>
return entry?.customizationDirectory ?? metadata?.workingDirectory ?? metadata?.customizationDirectory;
copilotAgent.ts
700
>
}
701
702
async authenticate(resource: string, token: string): Promise<boolean> {