300
301
getSessionState(sessionOrChat: URI): ISessionWithDefaultChat | undefined {
303
>
// chat URI is given the conversation contents are taken from that chat,
304
>
// while the session summary/config come from the owning session.
305
>
const isChat = isAhpChatChannel(sessionOrChat);
306
>
const session = isChat ? parseDefaultChatUri(sessionOrChat) : sessionOrChat;
307
>
if (session === undefined) {
308
return undefined;
309
}
311
>
if (!entry) {
312
return undefined;
313
}
315
>
return mergeSessionWithDefaultChat(entry.state, this._chatStates.get(chatUri));
316
>
}
317
318
/**