add support for fetching active chat session (#294992)

* add support for fetching active chat session

* refactor: rename activeChatSession to activeChatPanelSession and update related events
This commit is contained in:
Bhavya U
2026-02-12 15:01:33 -08:00
committed by GitHub
parent c5fb366012
commit e371f136a1
10 changed files with 57 additions and 2 deletions

View File

@@ -1044,6 +1044,14 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
checkProposedApiEnabled(extension, 'chatStatusItem');
return extHostChatStatus.createChatStatusItem(extension, id);
},
get activeChatPanelSessionResource() {
checkProposedApiEnabled(extension, 'chatParticipantPrivate');
return extHostChatAgents2.activeChatPanelSessionResource;
},
onDidChangeActiveChatPanelSessionResource: (listeners, thisArgs?, disposables?) => {
checkProposedApiEnabled(extension, 'chatParticipantPrivate');
return _asExtensionEvent(extHostChatAgents2.onDidChangeActiveChatPanelSessionResource)(listeners, thisArgs, disposables);
},
};
// namespace: workspace